Versions in this module Expand all Collapse all v1 v1.0.2 Oct 2, 2019 v1.0.1 Sep 10, 2019 Changes in this version + const BlockHashLen + const ContractHashLen + const ContractIDLen + const DefaultMinimalFees + const DefaultMinimalNanotezPerByte + const DefaultMinimalNanotezPerGasUnit + const DelegationGasLimit + const DelegationStorageBurn + const DelegationStorageLimitBytes + const MinimumOriginatedAccountTransferGasLimit + const MinimumOriginatedAccountTransferSizeBytes + const MinimumOriginationSizeBytes + const MinimumTransactionGasLimit + const NewAccountCreationBurn + const NewAccountStorageLimitBytes + const OperationHashLen + const OperationSignatureLen + const OriginatedAccountTransferMinimumFee + const OriginationGasLimit + const OriginationMinimumFee + const OriginationStorageBurn + const OriginationStorageLimitBytes + const PubKeyHashLen + const PubKeyLenEd25519 + const PubKeyLenP256 + const PubKeyLenSecp256k1 + const RevelationGasLimit + const RevelationStorageBurn + const RevelationStorageLimitBytes + const StorageCostPerByte + const TaggedPubKeyHashLen + var AllBase58CheckPrefixes = []Base58CheckPrefix + 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 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 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 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 + Delegatable bool + Delegate *ContractID + Fee *big.Int + GasLimit *big.Int + Manager ContractID + Source ContractID + Spendable bool + 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 + 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 Watermark byte + const BlockHeaderWatermark + const CustomWatermark + const EndorsementWatermark + const OperationWatermark + const TextWatermark Other modules containing this package github.com/anchorageoss/tezosprotocol/v2 github.com/anchorageoss/tezosprotocol/v3