Class TxSigningMetadata
A concrete implementation of ITxSigningMetadata.
Inherited Members
Namespace: Libplanet.Types.Tx
Assembly: Libplanet.Types.dll
Syntax
public sealed class TxSigningMetadata : ITxSigningMetadata, IEquatable<ITxSigningMetadata>, IEquatable<TxSigningMetadata>
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. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentOutOfRangeException | Thrown when the given
|
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
[Pure]
public bool Equals(TxSigningMetadata other)
Parameters
| Type | Name | Description |
|---|---|---|
| TxSigningMetadata | other |
Returns
| Type | Description |
|---|---|
| System.Boolean |
See Also
| Improve this Doc View SourceEquals(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
See Also
| Improve this Doc View SourceGetHashCode()
A concrete implementation of ITxSigningMetadata.
Declaration
[Pure]
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| Int32 |
Overrides
See Also
| Improve this Doc View SourceToString()
A concrete implementation of ITxSigningMetadata.
Declaration
[Pure]
public override string ToString()
Returns
| Type | Description |
|---|---|
| String |
Overrides
See Also
Explicit Interface Implementations
| Improve this Doc View SourceIEquatable<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 |