Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Proof ¶
type Proof struct { ID string Age int32 Nonce string Input json.Object Hash []byte PrevHash []byte Signature []byte Key ProofKey }
Proof defines a proof stored in client-side to validate the server ledger states.
func FromGRPC ¶
func FromGRPC(p *rpc.AssetProof) Proof
FromGRPC converts a rpc.AssetProof to a Proof.
func (Proof) String ¶
String returns the text formatted as same as the Java package: com.google.common.base.MoreObjects.toStringHelper
func (Proof) ValueEqual ¶
ValueEqual checks if the asset proof has the same values except the signature with another one.
Click to show internal directories.
Click to hide internal directories.