Show / Hide Table of Contents

Class TxSigningMetadata

A concrete implementation of ITxSigningMetadata.

Inheritance
Object
TxSigningMetadata
Implements
ITxSigningMetadata
IEquatable<ITxSigningMetadata>
IEquatable<TxSigningMetadata>
Inherited Members
Object.Equals(Object, Object)
System.Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Namespace: Libplanet.Types.Tx
Assembly: Libplanet.Types.dll
Syntax
public sealed class TxSigningMetadata : ITxSigningMetadata, IEquatable<ITxSigningMetadata>, IEquatable<TxSigningMetadata>

Constructors

| Improve this Doc View Source

TxSigningMetadata(PublicKey, Int64)

Creates a new TxSigningMetadata instance by filling data for its fields.

Declaration
public TxSigningMetadata(PublicKey publicKey, long nonce)
Parameters
Type Name Description
PublicKey publicKey

The value for PublicKey.

System.Int64 nonce

The value for Nonce.

Exceptions
Type Condition
ArgumentOutOfRangeException

Thrown when the given nonce is less than 0.

See Also
ITxSigningMetadata
TxInvoice
UnsignedTx
Transaction
| Improve this Doc View Source

TxSigningMetadata(ITxSigningMetadata)

Creates a new TxSigningMetadata instance by copying the fields from the given signingMetadata.

Declaration
public TxSigningMetadata(ITxSigningMetadata signingMetadata)
Parameters
Type Name Description
ITxSigningMetadata signingMetadata

The ITxSigningMetadata instance to copy fields from.

See Also
ITxSigningMetadata
TxInvoice
UnsignedTx
Transaction

Properties

| Improve this Doc View Source

Nonce

The number of previous Transactions committed by the Signer of this transaction. This nonce is used for preventing replay attack.

Declaration
public long Nonce { get; }
Property Value
Type Description
System.Int64
See Also
ITxSigningMetadata
TxInvoice
UnsignedTx
Transaction
| Improve this Doc View Source

PublicKey

A PublicKey of the account who signs this transaction. The Signer address is always corresponding to this for each transaction. This cannot be null.

Declaration
public PublicKey PublicKey { get; }
Property Value
Type Description
PublicKey
See Also
ITxSigningMetadata
TxInvoice
UnsignedTx
Transaction
| Improve this Doc View Source

Signer

A PublicKey of the account who signs this transaction. This is derived from the PublicKey.

Declaration
public Address Signer { get; }
Property Value
Type Description
Address
Remarks

This is automatically derived from PublicKey.

See Also
ITxSigningMetadata
TxInvoice
UnsignedTx
Transaction

Methods

| Improve this Doc View Source

Equals(TxSigningMetadata)

A concrete implementation of ITxSigningMetadata.

Declaration
[Pure]
public bool Equals(TxSigningMetadata other)
Parameters
Type Name Description
TxSigningMetadata other
Returns
Type Description
System.Boolean
See Also
ITxSigningMetadata
TxInvoice
UnsignedTx
Transaction
| Improve this Doc View Source

Equals(Object)

A concrete implementation of ITxSigningMetadata.

Declaration
[Pure]
public override bool Equals(object obj)
Parameters
Type Name Description
Object obj
Returns
Type Description
System.Boolean
Overrides
Object.Equals(Object)
See Also
ITxSigningMetadata
TxInvoice
UnsignedTx
Transaction
| Improve this Doc View Source

GetHashCode()

A concrete implementation of ITxSigningMetadata.

Declaration
[Pure]
public override int GetHashCode()
Returns
Type Description
Int32
Overrides
Object.GetHashCode()
See Also
ITxSigningMetadata
TxInvoice
UnsignedTx
Transaction
| Improve this Doc View Source

ToString()

A concrete implementation of ITxSigningMetadata.

Declaration
[Pure]
public override string ToString()
Returns
Type Description
String
Overrides
System.Object.ToString()
See Also
ITxSigningMetadata
TxInvoice
UnsignedTx
Transaction

Explicit Interface Implementations

| Improve this Doc View Source

IEquatable<ITxSigningMetadata>.Equals(ITxSigningMetadata)

A concrete implementation of ITxSigningMetadata.

Declaration
[Pure]
bool IEquatable<ITxSigningMetadata>.Equals(ITxSigningMetadata other)
Parameters
Type Name Description
ITxSigningMetadata other
Returns
Type Description
System.Boolean
See Also
ITxSigningMetadata
TxInvoice
UnsignedTx
Transaction

Implements

ITxSigningMetadata
System.IEquatable<T>
System.IEquatable<T>

Extension Methods

TxMarshaler.MarshalTxSigningMetadata(ITxSigningMetadata)

See Also

ITxSigningMetadata
TxInvoice
UnsignedTx
Transaction
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2023 Planetarium