Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metadata ¶
type Metadata struct { // Type is the type of the token Type string // Value is the quantity of the token Value *math.Zr // BlindingFactor is the blinding factor used to commit type and value BlindingFactor *math.Zr // Owner is the owner of the token Owner []byte // Issuer is the issuer of the token, if defined Issuer []byte }
Metadata contains the metadata of a token
func (*Metadata) Deserialize ¶
Deserialize un-marshals Metadata
type Token ¶
type Token struct { // Owner is the owner of the token Owner []byte // Data is the Pedersen commitment to type and value Data *math.G1 }
Token encodes Type, Value, Owner
func (*Token) Deserialize ¶
Deserialize unmarshals Token
func (*Token) GetCommitment ¶
GetCommitment returns the Pedersen commitment in Token
func (*Token) GetTokenInTheClear ¶
GetTokenInTheClear returns Token in the clear
type TokenDataWitness ¶
TokenDataWitness contains the opening of Data in Token
func GetTokensWithWitness ¶
func NewTokenDataWitness ¶
func NewTokenDataWitness(ttype string, values, bfs []*math.Zr) []*TokenDataWitness
NewTokenDataWitness returns an array of TokenDataWitness that corresponds to the passed arguments
func (*TokenDataWitness) Clone ¶
func (tdw *TokenDataWitness) Clone() *TokenDataWitness
Clone produces a copy of TokenDataWitness
Click to show internal directories.
Click to hide internal directories.