Versions in this module Expand all Collapse all v3 v3.1.0 Apr 27, 2023 v3.0.0 Jul 15, 2022 Changes in this version + const BlockHashLen + const ContractHashLen + const ContractIDLen + const DefaultMinimalFees + const DefaultMinimalNanotezPerByte + const DefaultMinimalNanotezPerGasUnit + const DelegationGasLimit + const DelegationStorageBurn + const DelegationStorageLimitBytes + const MinimumTransactionGasLimit + const NewAccountCreationBurn + const NewAccountStorageLimitBytes + const OperationHashLen + const OperationSignatureLen + const PrimD_Elt + const PrimD_False + const PrimD_Left + const PrimD_None + const PrimD_Pair + const PrimD_Right + const PrimD_Some + const PrimD_True + const PrimD_Unit + const PrimI_ABS + const PrimI_ADD + const PrimI_ADDRESS + const PrimI_AMOUNT + const PrimI_AND + const PrimI_APPLY + const PrimI_BALANCE + const PrimI_BLAKE2B + const PrimI_CAR + const PrimI_CAST + const PrimI_CDR + const PrimI_CHAIN_ID + const PrimI_CHECK_SIGNATURE + const PrimI_COMPARE + const PrimI_CONCAT + const PrimI_CONS + const PrimI_CONTRACT + const PrimI_CREATE_ACCOUNT + const PrimI_CREATE_CONTRACT + const PrimI_DIG + const PrimI_DIP + const PrimI_DROP + const PrimI_DUG + const PrimI_DUP + const PrimI_EDIV + const PrimI_EMPTY_BIG_MAP + const PrimI_EMPTY_MAP + const PrimI_EMPTY_SET + const PrimI_EQ + const PrimI_EXEC + const PrimI_FAILWITH + const PrimI_GE + const PrimI_GET + const PrimI_GT + const PrimI_HASH_KEY + const PrimI_IF + const PrimI_IF_CONS + const PrimI_IF_LEFT + const PrimI_IF_NONE + const PrimI_IMPLICIT_ACCOUNT + const PrimI_INT + const PrimI_ISNAT + const PrimI_ITER + const PrimI_LAMBDA + const PrimI_LE + const PrimI_LEFT + const PrimI_LOOP + const PrimI_LOOP_LEFT + const PrimI_LSL + const PrimI_LSR + const PrimI_LT + const PrimI_MAP + const PrimI_MEM + const PrimI_MUL + const PrimI_NEG + const PrimI_NEQ + const PrimI_NIL + const PrimI_NONE + const PrimI_NOT + const PrimI_NOW + const PrimI_OR + const PrimI_PACK + const PrimI_PAIR + const PrimI_PUSH + const PrimI_RENAME + const PrimI_RIGHT + const PrimI_SELF + const PrimI_SENDER + const PrimI_SET_DELEGATE + const PrimI_SHA256 + const PrimI_SHA512 + const PrimI_SIZE + const PrimI_SLICE + const PrimI_SOME + const PrimI_SOURCE + const PrimI_STEPS_TO_QUOTA + const PrimI_SUB + const PrimI_SWAP + const PrimI_TRANSFER_TOKENS + const PrimI_UNIT + const PrimI_UNPACK + const PrimI_UPDATE + const PrimI_XOR + const PrimK_code + const PrimK_parameter + const PrimK_storage + const PrimT_address + const PrimT_big_map + const PrimT_bool + const PrimT_bytes + const PrimT_chain_id + const PrimT_contract + const PrimT_int + const PrimT_key + const PrimT_key_hash + const PrimT_lambda + const PrimT_list + const PrimT_map + const PrimT_mutez + const PrimT_nat + const PrimT_operation + const PrimT_option + const PrimT_or + const PrimT_pair + const PrimT_set + const PrimT_signature + const PrimT_string + const PrimT_timestamp + const PrimT_unit + const PubKeyHashLen + const PubKeyLenEd25519 + const PubKeyLenP256 + const PubKeyLenSecp256k1 + const RevelationGasLimit + const RevelationStorageBurn + const RevelationStorageLimitBytes + const StorageCostPerByte + const TaggedPubKeyHashLen + var AllBase58CheckPrefixes = []Base58CheckPrefix + var EntrypointDefault = Entrypoint + var EntrypointDo = Entrypoint + var EntrypointRemoveDelegate = Entrypoint + var EntrypointRoot = Entrypoint + var EntrypointSetDelegate = Entrypoint + var PrefixBlockHash = registerBase58CheckPrefix(base58CheckPrefixInfo{ ... }) + var PrefixChainID = registerBase58CheckPrefix(base58CheckPrefixInfo{ ... }) + var PrefixContextHash = registerBase58CheckPrefix(base58CheckPrefixInfo{ ... }) + var PrefixContractHash = registerBase58CheckPrefix(base58CheckPrefixInfo{ ... }) + var PrefixCryptoboxPublicKeyHash = registerBase58CheckPrefix(base58CheckPrefixInfo{ ... }) + var PrefixEd25519EncryptedSeed = registerBase58CheckPrefix(base58CheckPrefixInfo{ ... }) + var PrefixEd25519PublicKey = registerBase58CheckPrefix(base58CheckPrefixInfo{ ... }) + var PrefixEd25519PublicKeyHash = registerBase58CheckPrefix(base58CheckPrefixInfo{ ... }) + var PrefixEd25519SecretKey = registerBase58CheckPrefix(base58CheckPrefixInfo{ ... }) + var PrefixEd25519Seed = registerBase58CheckPrefix(base58CheckPrefixInfo{ ... }) + var PrefixEd25519Signature = registerBase58CheckPrefix(base58CheckPrefixInfo{ ... }) + var PrefixGenericSignature = registerBase58CheckPrefix(base58CheckPrefixInfo{ ... }) + var PrefixOperationHash = registerBase58CheckPrefix(base58CheckPrefixInfo{ ... }) + var PrefixOperationListHash = registerBase58CheckPrefix(base58CheckPrefixInfo{ ... }) + var PrefixOperationListListHash = registerBase58CheckPrefix(base58CheckPrefixInfo{ ... }) + var PrefixP256EncryptedSecretKey = registerBase58CheckPrefix(base58CheckPrefixInfo{ ... }) + var PrefixP256PublicKey = registerBase58CheckPrefix(base58CheckPrefixInfo{ ... }) + var PrefixP256PublicKeyHash = registerBase58CheckPrefix(base58CheckPrefixInfo{ ... }) + var PrefixP256SecretKey = registerBase58CheckPrefix(base58CheckPrefixInfo{ ... }) + var PrefixP256Signature = registerBase58CheckPrefix(base58CheckPrefixInfo{ ... }) + var PrefixProtocolHash = registerBase58CheckPrefix(base58CheckPrefixInfo{ ... }) + var PrefixSecp256k1Element = registerBase58CheckPrefix(base58CheckPrefixInfo{ ... }) + var PrefixSecp256k1EncryptedSecretKey = registerBase58CheckPrefix(base58CheckPrefixInfo{ ... }) + var PrefixSecp256k1PublicKey = registerBase58CheckPrefix(base58CheckPrefixInfo{ ... }) + var PrefixSecp256k1PublicKeyHash = registerBase58CheckPrefix(base58CheckPrefixInfo{ ... }) + var PrefixSecp256k1Scalar = registerBase58CheckPrefix(base58CheckPrefixInfo{ ... }) + var PrefixSecp256k1SecretKey = registerBase58CheckPrefix(base58CheckPrefixInfo{ ... }) + var PrefixSecp256k1Signature = registerBase58CheckPrefix(base58CheckPrefixInfo{ ... }) + func Base58CheckEncode(b58Prefix Base58CheckPrefix, input []byte) (string, error) + func ComputeMinimumFee(gasLimit, operationSizeBytes *big.Int) *big.Int + func VerifyMessage(message string, signature Signature, publicKey crypto.PublicKey) error + type AccountType string + const AccountTypeImplicit + const AccountTypeOriginated + type Base58CheckPrefix int + func Base58CheckDecode(input string) (Base58CheckPrefix, []byte, error) + func (b Base58CheckPrefix) PayloadLength() int + func (b Base58CheckPrefix) PrefixBytes() []byte + func (b Base58CheckPrefix) String() string + type BranchID string + func (b *BranchID) UnmarshalBinary(data []byte) error + func (b BranchID) MarshalBinary() ([]byte, error) + type ContentsTag byte + const ContentsTagDelegation + const ContentsTagEndorsement + const ContentsTagOrigination + const ContentsTagRevelation + const ContentsTagTransaction + type ContractID string + func NewContractIDFromOrigination(operationHash OperationHash, nonce uint32) (ContractID, error) + func NewContractIDFromPublicKey(pubKey PublicKey) (ContractID, error) + func (c *ContractID) UnmarshalBinary(data []byte) error + func (c ContractID) AccountType() (AccountType, error) + func (c ContractID) EncodePubKeyHash() ([]byte, error) + func (c ContractID) MarshalBinary() ([]byte, error) + type ContractIDTag byte + const ContractIDTagImplicit + const ContractIDTagOriginated + type ContractScript struct + Code []byte + Storage []byte + func (c *ContractScript) UnmarshalBinary(data []byte) error + func (c ContractScript) MarshalBinary() ([]byte, error) + type Delegation struct + Counter *big.Int + Delegate *ContractID + Fee *big.Int + GasLimit *big.Int + Source ContractID + StorageLimit *big.Int + func (d *Delegation) GetSource() ContractID + func (d *Delegation) GetTag() ContentsTag + func (d *Delegation) MarshalBinary() ([]byte, error) + func (d *Delegation) String() string + func (d *Delegation) UnmarshalBinary(data []byte) (err error) + type Endorsement struct + Level int32 + func (e *Endorsement) GetTag() ContentsTag + func (e *Endorsement) MarshalBinary() ([]byte, error) + func (e *Endorsement) String() string + func (e *Endorsement) UnmarshalBinary(data []byte) (err error) + type Entrypoint struct + func NewNamedEntrypoint(name string) (Entrypoint, error) + func (e *Entrypoint) UnmarshalBinary(data []byte) error + func (e Entrypoint) MarshalBinary() ([]byte, error) + func (e Entrypoint) Name() (string, error) + func (e Entrypoint) String() string + func (e Entrypoint) Tag() EntrypointTag + type EntrypointTag byte + const EntrypointTagDefault + const EntrypointTagDo + const EntrypointTagNamed + const EntrypointTagRemoveDelegate + const EntrypointTagRoot + const EntrypointTagSetDelegate + type MichelineBytes []byte + func (m *MichelineBytes) UnmarshalBinary([]byte) error + func (m MichelineBytes) MarshalBinary() ([]byte, error) + type MichelineInt big.Int + func (m *MichelineInt) UnmarshalBinary([]byte) error + func (m MichelineInt) MarshalBinary() ([]byte, error) + type MichelineNode interface + MarshalBinary func() ([]byte, error) + UnmarshalBinary func([]byte) error + type MichelinePrim struct + Annots []string + Args []MichelineNode + Prim byte + func (m *MichelinePrim) UnmarshalBinary([]byte) error + func (m MichelinePrim) MarshalBinary() ([]byte, error) + type MichelineSeq []MichelineNode + func (m *MichelineSeq) UnmarshalBinary([]byte) error + func (m MichelineSeq) MarshalBinary() ([]byte, error) + type MichelineString string + func (m *MichelineString) UnmarshalBinary([]byte) error + func (m MichelineString) MarshalBinary() ([]byte, error) + type Operation struct + Branch BranchID + Contents []OperationContents + func (o *Operation) MarshalBinary() ([]byte, error) + func (o *Operation) SignatureHash() ([]byte, error) + func (o *Operation) String() string + func (o *Operation) UnmarshalBinary(data []byte) (err error) + type OperationContents interface + GetTag func() ContentsTag + type OperationHash string + func (o *OperationHash) UnmarshalBinary(data []byte) error + func (o OperationHash) MarshalBinary() ([]byte, error) + type Origination struct + Balance *big.Int + Counter *big.Int + Delegate *ContractID + Fee *big.Int + GasLimit *big.Int + Script ContractScript + Source ContractID + StorageLimit *big.Int + func (o *Origination) GetSource() ContractID + func (o *Origination) GetTag() ContentsTag + func (o *Origination) MarshalBinary() ([]byte, error) + func (o *Origination) String() string + func (o *Origination) UnmarshalBinary(data []byte) (err error) + type PrivateKey string + func NewPrivateKeyFromCryptoPrivateKey(cryptoPrivateKey crypto.PrivateKey) (PrivateKey, error) + func (p PrivateKey) CryptoPrivateKey() (crypto.PrivateKey, error) + func (p PrivateKey) MarshalBinary() ([]byte, error) + type PrivateKeySeed string + func (p PrivateKeySeed) PrivateKey() (PrivateKey, error) + type PubKeyHashTag byte + const PubKeyHashTagEd25519 + const PubKeyHashTagP256 + const PubKeyHashTagSecp256k1 + type PubKeyTag byte + const PubKeyTagEd25519 + const PubKeyTagP256 + const PubKeyTagSecp256k1 + type PublicKey string + func NewPublicKeyFromCryptoPublicKey(cryptoPubKey crypto.PublicKey) (PublicKey, error) + func (p *PublicKey) UnmarshalBinary(data []byte) error + func (p PublicKey) CryptoPublicKey() (crypto.PublicKey, error) + func (p PublicKey) MarshalBinary() ([]byte, error) + type Revelation struct + Counter *big.Int + Fee *big.Int + GasLimit *big.Int + PublicKey PublicKey + Source ContractID + StorageLimit *big.Int + func (r *Revelation) GetSource() ContractID + func (r *Revelation) GetTag() ContentsTag + func (r *Revelation) MarshalBinary() ([]byte, error) + func (r *Revelation) String() string + func (r *Revelation) UnmarshalBinary(data []byte) (err error) + type Signature string + func SignMessage(message string, privateKey PrivateKey) (Signature, error) + func (s Signature) MarshalBinary() ([]byte, error) + type SignedOperation struct + Operation *Operation + Signature Signature + func SignOperation(operation *Operation, privateKey PrivateKey) (SignedOperation, error) + func (s *SignedOperation) UnmarshalBinary(data []byte) error + func (s SignedOperation) GetHash() (OperationHash, error) + func (s SignedOperation) MarshalBinary() ([]byte, error) + type Transaction struct + Amount *big.Int + Counter *big.Int + Destination ContractID + Fee *big.Int + GasLimit *big.Int + Parameters *TransactionParameters + Source ContractID + StorageLimit *big.Int + func (t *Transaction) GetSource() ContractID + func (t *Transaction) GetTag() ContentsTag + func (t *Transaction) MarshalBinary() ([]byte, error) + func (t *Transaction) String() string + func (t *Transaction) UnmarshalBinary(data []byte) (err error) + type TransactionParameters struct + Entrypoint Entrypoint + Value TransactionParametersValue + func (t *TransactionParameters) UnmarshalBinary(data []byte) (err error) + func (t TransactionParameters) MarshalBinary() ([]byte, error) + type TransactionParametersValue interface + type TransactionParametersValueRawBytes []byte + func (t *TransactionParametersValueRawBytes) MarshalBinary() ([]byte, error) + func (t *TransactionParametersValueRawBytes) UnmarshalBinary(data []byte) error + type Watermark byte + const BlockHeaderWatermark + const CustomWatermark + const EndorsementWatermark + const OperationWatermark + const TextWatermark Other modules containing this package github.com/anchorageoss/tezosprotocol github.com/anchorageoss/tezosprotocol/v2