package
0.3.1
Repository: https://github.com/tokenized/specification.git
Documentation: pkg.go.dev

# Functions

AssetCodeFromBytes returns a AssetCode with the specified bytes.
AssetCodeFromContract generates a "unique" deterministic asset code from a contract public key hash and an asset index.
AssetID encodes an asset ID.
ContractAdminIdentityOracleSigHash returns a Double SHA256 of the data required to identify a contract issuer and related information by an oracle.
AssetCodeFromBytes returns a ContractCode with the specified bytes.
CurrentTimestamp returns a Timestamp containing the current time.
DecodeAssetID decodes the asset type and asset code from an asset ID.
Deserialize reads an action from a Tokenized OP_RETURN script.
No description provided by the author
No description provided by the author
DeserializeFlagOutputScript returns a flag value if the script is a flag script.
No description provided by the author
No description provided by the author
EntityPubKeyOracleSigHash returns a Double SHA256 of the data required to verify an association between an entity and a public key by an oracle.
EntityXPubOracleSigHash returns a Double SHA256 of the data required to verify an association between an entity and an extended public key by an oracle.
EstimatedAssetModificationResponse calculates information about the contract's response to an asset modification request.
EstimatedContractAmendmentResponse calculates information about the contract's response to an amendment request.
EstimatedResponse calculates information about the contract's response to a request.
EstimatedTransferResponse calculates information about the contract's response to a transfer request.
No description provided by the author
NewTimestamp returns a new timestamp from nanoseconds.
OrderAuthoritySigHash returns a Double SHA256 of the data in an order op return that needs to be signed by an authority for the OrderSignature field.
Serialize serializes an action into a Tokenized OP_RETURN script.
SerializeFlagOutputScript creates a locking script containing the flag value for a relationship message.
TransferOracleSigHash returns a Double SHA256 of the data required to identify a token receiver approval by an oracle.
No description provided by the author
WrapAction wraps an action in an envelope message.

# Constants

No description provided by the author
No description provided by the author
ProtocolID is the current protocol ID.
TestProtocolID is the current protocol ID for testing.
Version of the Tokenized protocol.

# Variables

DefaultEndian specifies the order of bytes for encoding integers.
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

------------------------------------------------------------------------------------------------ AssetCode represents a unique identifier for a Tokenized asset.
------------------------------------------------------------------------------------------------ ContractCode represents a unique identifier for a Tokenized static contract.
------------------------------------------------------------------------------------------------ Timestamp represents a time in the Tokenized protocol.
------------------------------------------------------------------------------------------------ TxId represents a Bitcoin transaction ID.