Documentation
¶
Index ¶
- Constants
- func UnmarshalTypedMetadata(metadata driver.Metadata) (*tokens.TypedMetadata, error)
- func UnmarshalTypedToken(token driver.Token) (*tokens.TypedToken, error)
- func WrapMetadataWithType(metadata driver.Metadata) (driver.Metadata, error)
- func WrapTokenWithType(token driver.Token) (driver.Token, error)
- type Metadata
- type Token
Constants ¶
View Source
const (
Type driver.Type = 2
)
Variables ¶
This section is empty.
Functions ¶
func UnmarshalTypedMetadata ¶
func UnmarshalTypedMetadata(metadata driver.Metadata) (*tokens.TypedMetadata, error)
func UnmarshalTypedToken ¶
func UnmarshalTypedToken(token driver.Token) (*tokens.TypedToken, error)
func WrapMetadataWithType ¶
Types ¶
type Metadata ¶
type Metadata struct { // Type is the type of the token Type token2.Type // 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
Click to show internal directories.
Click to hide internal directories.