Class TxSigningMetadata
A concrete implementation of ITxSigningMetadata.
Inheritance
Namespace: Libplanet.Types.Tx
Assembly: Libplanet.Types.dll
Syntax
public sealed class TxSigningMetadata : object, ITxSigningMetadata
Constructors
| Improve this Doc View SourceTxSigningMetadata(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. |
See Also
| Improve this Doc View SourceTxSigningMetadata(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
Properties
| Improve this Doc View SourceNonce
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
| Improve this Doc View SourcePublicKey
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
| Improve this Doc View SourceSigner
Declaration
public Address Signer { get; }
Property Value
Type | Description |
---|---|
Address |
Remarks
This is automatically derived from PublicKey.
See Also
Methods
| Improve this Doc View SourceEquals(TxSigningMetadata)
A concrete implementation of ITxSigningMetadata.
Declaration
public bool Equals(TxSigningMetadata other)
Parameters
Type | Name | Description |
---|---|---|
TxSigningMetadata | other |
Returns
Type | Description |
---|---|
System.Boolean |
See Also
| Improve this Doc View SourceEquals(Nullable<Object>)
A concrete implementation of ITxSigningMetadata.
Declaration
public override bool Equals(object? obj)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<System.Object> | obj |
Returns
Type | Description |
---|---|
System.Boolean |
See Also
| Improve this Doc View SourceGetHashCode()
A concrete implementation of ITxSigningMetadata.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
See Also
| Improve this Doc View SourceToString()
A concrete implementation of ITxSigningMetadata.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |