Versions in this module Expand all Collapse all v1 v1.12.2 Apr 13, 2022 Changes in this version + const BAKER_PUBLIC_KEY_HASH_PREFIX + const BLINDED_PUBLIC_KEY_HASH_PREFIX + const BLOCK_HASH_PREFIX + const BLOCK_METADATA_HASH_PREFIX + const BLOCK_PAYLOAD_HASH_PREFIX + const CHAIN_ID_PREFIX + const CONTEXT_HASH_PREFIX + const ED25519_ENCRYPTED_SEED_PREFIX + const ED25519_PUBLIC_KEY_HASH_PREFIX + const ED25519_PUBLIC_KEY_PREFIX + const ED25519_SECRET_KEY_PREFIX + const ED25519_SEED_PREFIX + const ED25519_SIGNATURE_PREFIX + const GENERIC_SIGNATURE_PREFIX + const ID_HASH_PREFIX + const NOCURVE_PUBLIC_KEY_HASH_PREFIX + const NONCE_HASH_PREFIX + const Name + const OPERATION_HASH_PREFIX + const OPERATION_LIST_HASH_PREFIX + const OPERATION_LIST_LIST_HASH_PREFIX + const OPERATION_METADATA_HASH_PREFIX + const OPERATION_METADATA_LIST_HASH_PREFIX + const OPERATION_METADATA_LIST_LIST_HASH_PREFIX + const P256_ENCRYPTED_SECRET_KEY_PREFIX + const P256_PUBLIC_KEY_HASH_PREFIX + const P256_PUBLIC_KEY_PREFIX + const P256_SECRET_KEY_PREFIX + const P256_SIGNATURE_PREFIX + const PROTOCOL_HASH_PREFIX + const SAPLING_ADDRESS_PREFIX + const SAPLING_SPENDING_KEY_PREFIX + const SCRIPT_EXPR_HASH_PREFIX + const SECP256K1_ELEMENT_PREFIX + const SECP256K1_ENCRYPTED_SCALAR_PREFIX + const SECP256K1_ENCRYPTED_SECRET_KEY_PREFIX + const SECP256K1_PUBLIC_KEY_HASH_PREFIX + const SECP256K1_PUBLIC_KEY_PREFIX + const SECP256K1_SCALAR_PREFIX + const SECP256K1_SECRET_KEY_PREFIX + const SECP256K1_SIGNATURE_PREFIX + const Symbol + var BAKER_PUBLIC_KEY_HASH_ID = []byte + var BLINDED_PUBLIC_KEY_HASH_ID = []byte + var BLOCK_HASH_ID = []byte + var BLOCK_METADATA_HASH_ID = []byte + var BLOCK_PAYLOAD_HASH_ID = []byte + var BurnAddress = MustParseAddress("tz1burnburnburnburnburnburnburjAYjjX") + var CHAIN_ID = []byte + var CONTEXT_HASH_ID = []byte + var DefaultParams = ...(&Params{ ... }) + var Digest = blake2b.Sum256 + var ED25519_ENCRYPTED_SEED_ID = []byte + var ED25519_PUBLIC_KEY_HASH_ID = []byte + var ED25519_PUBLIC_KEY_ID = []byte + var ED25519_SECRET_KEY_ID = []byte + var ED25519_SEED_ID = []byte + var ED25519_SIGNATURE_ID = []byte + var ErrChecksumMismatch = errors.New("tezos: checksum mismatch") + var ErrPassphrase = errors.New("tezos: passphrase required") + var ErrSignature = errors.New("signature mismatch") + var ErrUnknownAddressType = errors.New("tezos: unknown address type") + var ErrUnknownHashType = errors.New("tezos: unknown hash type") + var ErrUnknownKeyType = errors.New("tezos: unknown key type") + var ErrUnknownSignatureType = errors.New("unknown signature type") + var GENERIC_SIGNATURE_ID = []byte + var Hangzhounet2 = MustParseChainIdHash("NetXZSsxBpMQeAT") + var ID_HASH_ID = []byte + var InvalidAddress = Address + var InvalidHash = Hash + var InvalidKey = Key + var InvalidSignature = Signature + var Ithacanet2 = MustParseChainIdHash("NetXnHfVqm9iesp") + var Mainnet = MustParseChainIdHash("NetXdQprcVkpaWU") + var NOCURVE_PUBLIC_KEY_HASH_ID = []byte + var NONCE_HASH_ID = []byte + var OPERATION_HASH_ID = []byte + var OPERATION_LIST_HASH_ID = []byte + var OPERATION_LIST_LIST_HASH_ID = []byte + var OPERATION_METADATA_HASH_ID = []byte + var OPERATION_METADATA_LIST_HASH_ID = []byte + var OPERATION_METADATA_LIST_LIST_HASH_ID = []byte + var P256_ENCRYPTED_SECRET_KEY_ID = []byte + var P256_PUBLIC_KEY_HASH_ID = []byte + var P256_PUBLIC_KEY_ID = []byte + var P256_SECRET_KEY_ID = []byte + var P256_SIGNATURE_ID = []byte + var PROTOCOL_HASH_ID = []byte + var ProtoBootstrap = ParseProtocolHashSafe("PtYuensgYBb3G3x1hLLbCmcav8ue8Kyd2khADcL5LsT5R1hcXex") + var ProtoGenesis = ParseProtocolHashSafe("PrihK96nBAFSxVL1GLJTVhu9YnzkMFiBeuJRPA8NwuZVZCE1L6i") + var ProtoV000 = ParseProtocolHashSafe("Ps9mPmXaRzmzk35gbAYNCAw6UXdE2qoABTHbN2oEEc1qM7CwT9P") + var ProtoV001 = ParseProtocolHashSafe("PtCJ7pwoxe8JasnHY8YonnLYjcVHmhiARPJvqcC6VfHT5s8k8sY") + var ProtoV002 = ParseProtocolHashSafe("PsYLVpVvgbLhAhoqAkMFUo6gudkJ9weNXhUYCiLDzcUpFpkk8Wt") + var ProtoV003 = ParseProtocolHashSafe("PsddFKi32cMJ2qPjf43Qv5GDWLDPZb3T3bF6fLKiF5HtvHNU7aP") + var ProtoV004 = ParseProtocolHashSafe("Pt24m4xiPbLDhVgVfABUjirbmda3yohdN82Sp9FeuAXJ4eV9otd") + var ProtoV005_2 = ParseProtocolHashSafe("PsBabyM1eUXZseaJdmXFApDSBqj8YBfwELoxZHHW77EMcAbbwAS") + var ProtoV006_2 = ParseProtocolHashSafe("PsCARTHAGazKbHtnKfLzQg3kms52kSRpgnDY982a9oYsSXRLQEb") + var ProtoV007 = ParseProtocolHashSafe("PsDELPH1Kxsxt8f9eWbxQeRxkjfbxoqM52jvs5Y5fBxWWh4ifpo") + var ProtoV008_2 = ParseProtocolHashSafe("PtEdo2ZkT9oKpimTah6x2embF25oss54njMuPzkJTEi5RqfdZFA") + var ProtoV009 = ParseProtocolHashSafe("PsFLorenaUUuikDWvMDr6fGBRG8kt3e3D3fHoXK1j1BFRxeSH4i") + var ProtoV010 = ParseProtocolHashSafe("PtGRANADsDU8R9daYKAgWnQYAJ64omN1o3KMGVCykShA97vQbvV") + var ProtoV011_2 = ParseProtocolHashSafe("PtHangz2aRngywmSRGGvrcTyMbbdpWdpFKuS4uMWxg2RaH9i1qx") + var ProtoV012_2 = ParseProtocolHashSafe("Psithaca2MLRFYargivpo7YvUr7wUDqyxrdhC5CQq78mRvimz6A") + var ProtocolVersions = map[uint32][]ProtocolHash + var PsBabyM1 = ProtoV005_2 + var PsCARTHA = ProtoV006_2 + var PsDELPH1 = ProtoV007 + var PsFLoren = ProtoV009 + var Psithaca = ProtoV012_2 + var Pt24m4xi = ProtoV004 + var PtEdo2 = ProtoV008_2 + var PtGRANAD = ProtoV010 + var PtHangz2 = ProtoV011_2 + var SAPLING_ADDRESS_ID = []byte + var SAPLING_SPENDING_KEY_ID = []byte + var SCRIPT_EXPR_HASH_ID = []byte + var SECP256K1_ELEMENT_ID = []byte + var SECP256K1_ENCRYPTED_SCALAR_ID = []byte + var SECP256K1_ENCRYPTED_SECRET_KEY_ID = []byte + var SECP256K1_PUBLIC_KEY_HASH_ID = []byte + var SECP256K1_PUBLIC_KEY_ID = []byte + var SECP256K1_SCALAR_ID = []byte + var SECP256K1_SECRET_KEY_ID = []byte + var SECP256K1_SIGNATURE_ID = []byte + var VotingPeriods = []VotingPeriodKind + var ZeroAddress = Address + var ZeroBlockHash = NewBlockHash(make([]byte, HashTypeBlock.Len())) + var ZeroOpHash = NewOpHash(make([]byte, HashTypeOperation.Len())) + var ZeroSignature = MustParseSignature(...) + func BlindHash(hash, secret []byte) ([]byte, error) + func EncodeAddress(typ AddressType, addrhash []byte) (string, error) + func EncodeBlindedAddress(hash, secret []byte) (string, error) + func HasAddressPrefix(s string) bool + func HasKeyPrefix(s string) bool + func HasSignaturePrefix(s string) bool + func IsAddressBytes(b []byte) bool + func IsEncryptedKey(s string) bool + func IsPrivateKey(s string) bool + func IsPublicKey(s string) bool + func IsSignature(s string) bool + func MatchBlindedAddress(a, b Address, secret []byte) bool + type Address struct + Hash []byte + Type AddressType + func BlindAddress(a Address, secret []byte) (Address, error) + func DecodeBlindedAddress(addr string) (Address, error) + func MustParseAddress(addr string) Address + func NewAddress(typ AddressType, hash []byte) Address + func ParseAddress(addr string) (Address, error) + func (a *Address) DecodeBlindedString(addr string) error + func (a *Address) UnmarshalBinary(b []byte) error + func (a *Address) UnmarshalText(data []byte) error + func (a Address) BakerAddress() string + func (a Address) Bytes() []byte + func (a Address) Bytes22() []byte + func (a Address) Clone() Address + func (a Address) ContractAddress() string + func (a Address) Equal(b Address) bool + func (a Address) IsContract() bool + func (a Address) IsEOA() bool + func (a Address) IsValid() bool + func (a Address) MarshalBinary() ([]byte, error) + func (a Address) MarshalText() ([]byte, error) + func (a Address) Short() string + func (a Address) String() string + type AddressFilter struct + func NewAddressFilter(addrs ...Address) *AddressFilter + func (s *AddressFilter) Add(addr Address) + func (s *AddressFilter) AddUnique(addr Address) bool + func (s *AddressFilter) Len() int + func (s *AddressFilter) Merge(b *AddressFilter) + func (s *AddressFilter) Remove(addr Address) + func (s AddressFilter) Contains(addr Address) bool + type AddressSet struct + func NewAddressSet(addrs ...Address) *AddressSet + func (s *AddressSet) Add(addr Address) + func (s *AddressSet) AddUnique(addr Address) bool + func (s *AddressSet) Len() int + func (s *AddressSet) Merge(b *AddressSet) + func (s *AddressSet) Remove(addr Address) + func (s AddressSet) Contains(addr Address) bool + func (s AddressSet) Map() map[uint64]Address + func (s AddressSet) Slice() []Address + type AddressType byte + const AddressTypeBaker + const AddressTypeBlinded + const AddressTypeContract + const AddressTypeEd25519 + const AddressTypeInvalid + const AddressTypeP256 + const AddressTypeSapling + const AddressTypeSecp256k1 + func ParseAddressTag(b byte) AddressType + func ParseAddressType(s string) AddressType + func (t *AddressType) UnmarshalText(data []byte) error + func (t AddressType) HashType() HashType + func (t AddressType) IsValid() bool + func (t AddressType) KeyType() KeyType + func (t AddressType) MarshalText() ([]byte, error) + func (t AddressType) Prefix() string + func (t AddressType) String() string + func (t AddressType) Tag() byte + type BallotVote byte + const BallotVoteInvalid + const BallotVoteNay + const BallotVotePass + const BallotVoteYay + func ParseBallotTag(t byte) BallotVote + func ParseBallotVote(s string) BallotVote + func (v *BallotVote) UnmarshalBinary(data []byte) error + func (v *BallotVote) UnmarshalText(data []byte) error + func (v BallotVote) IsValid() bool + func (v BallotVote) MarshalText() ([]byte, error) + func (v BallotVote) String() string + func (v BallotVote) Tag() byte + type BlockHash struct + func MustParseBlockHash(s string) BlockHash + func NewBlockHash(buf []byte) BlockHash + func ParseBlockHash(s string) (BlockHash, error) + func (h *BlockHash) UnmarshalBinary(data []byte) error + func (h *BlockHash) UnmarshalText(data []byte) error + func (h BlockHash) Clone() BlockHash + func (h BlockHash) Equal(h2 BlockHash) bool + type Bool byte + const False + const True + func (b *Bool) DecodeBuffer(buf *bytes.Buffer) error + func (b Bool) EncodeBuffer(buf *bytes.Buffer) error + type ChainIdHash struct + func MustParseChainIdHash(s string) ChainIdHash + func NewChainIdHash(buf []byte) ChainIdHash + func ParseChainIdHash(s string) (ChainIdHash, error) + func (h *ChainIdHash) UnmarshalBinary(data []byte) error + func (h *ChainIdHash) UnmarshalText(data []byte) error + func (h ChainIdHash) Clone() ChainIdHash + func (h ChainIdHash) Equal(h2 ChainIdHash) bool + func (h ChainIdHash) Uint32() uint32 + type ContextHash struct + func MustParseContextHash(s string) ContextHash + func NewContextHash(buf []byte) ContextHash + func ParseContextHash(s string) (ContextHash, error) + func (h *ContextHash) UnmarshalBinary(data []byte) error + func (h *ContextHash) UnmarshalText(data []byte) error + func (h ContextHash) Clone() ContextHash + func (h ContextHash) Equal(h2 ContextHash) bool + type Costs struct + AllocationBurn int64 + Burn int64 + Fee int64 + GasUsed int64 + StorageBurn int64 + StorageUsed int64 + func (x Costs) Add(y Costs) Costs + type ExprHash struct + func MustParseExprHash(s string) ExprHash + func NewExprHash(buf []byte) ExprHash + func ParseExprHash(s string) (ExprHash, error) + func (h *ExprHash) UnmarshalBinary(data []byte) error + func (h *ExprHash) UnmarshalText(data []byte) error + func (h ExprHash) Clone() ExprHash + func (h ExprHash) Equal(h2 ExprHash) bool + type Hash struct + Hash []byte + Type HashType + func NewHash(typ HashType, hash []byte) Hash + func ParseHash(s string) (Hash, error) + func (h *Hash) Reset() + func (h *Hash) UnmarshalText(data []byte) error + func (h Hash) Bytes() []byte + func (h Hash) Clone() Hash + func (h Hash) Equal(h2 Hash) bool + func (h Hash) Int64() int64 + func (h Hash) IsEmpty() bool + func (h Hash) IsValid() bool + func (h Hash) IsZero() bool + func (h Hash) MarshalBinary() ([]byte, error) + func (h Hash) MarshalText() ([]byte, error) + func (h Hash) Short() string + func (h Hash) String() string + type HashType byte + const HashTypeBlock + const HashTypeBlockMetadata + const HashTypeBlockPayload + const HashTypeChainId + const HashTypeContext + const HashTypeElementSecp256k1 + const HashTypeEncryptedSecp256k1Scalar + const HashTypeEncryptedSeedEd25519 + const HashTypeEncryptedSkP256 + const HashTypeEncryptedSkSecp256k1 + const HashTypeId + const HashTypeInvalid + const HashTypeNonce + const HashTypeOperation + const HashTypeOperationList + const HashTypeOperationListList + const HashTypeOperationMetadata + const HashTypeOperationMetadataList + const HashTypeOperationMetadataListList + const HashTypePkEd25519 + const HashTypePkP256 + const HashTypePkSecp256k1 + const HashTypePkhBaker + const HashTypePkhBlinded + const HashTypePkhEd25519 + const HashTypePkhNocurve + const HashTypePkhP256 + const HashTypePkhSecp256k1 + const HashTypeProtocol + const HashTypeSaplingAddress + const HashTypeSaplingSpendingKey + const HashTypeScalarSecp256k1 + const HashTypeScriptExpr + const HashTypeSeedEd25519 + const HashTypeSigEd25519 + const HashTypeSigGeneric + const HashTypeSigP256 + const HashTypeSigSecp256k1 + const HashTypeSkEd25519 + const HashTypeSkP256 + const HashTypeSkSecp256k1 + func ParseHashType(s string) HashType + func (t HashType) Base58Len() int + func (t HashType) IsValid() bool + func (t HashType) Len() int + func (t HashType) MatchPrefix(s string) bool + func (t HashType) Prefix() string + func (t HashType) PrefixBytes() []byte + func (t HashType) String() string + type HexBytes []byte + func (h *HexBytes) UnmarshalText(data []byte) error + func (h HexBytes) Bytes() []byte + func (h HexBytes) MarshalText() ([]byte, error) + func (h HexBytes) String() string + type Key struct + Data []byte + Type KeyType + func DecodeKey(buf []byte) (Key, error) + func MustParseKey(key string) Key + func NewKey(typ KeyType, data []byte) Key + func ParseKey(s string) (Key, error) + func (k *Key) DecodeBuffer(buf *bytes.Buffer) error + func (k *Key) EncodeBuffer(buf *bytes.Buffer) error + func (k *Key) UnmarshalBinary(b []byte) error + func (k *Key) UnmarshalText(data []byte) error + func (k Key) Address() Address + func (k Key) Bytes() []byte + func (k Key) Clone() Key + func (k Key) Hash() []byte + func (k Key) IsEqual(k2 Key) bool + func (k Key) IsValid() bool + func (k Key) MarshalBinary() ([]byte, error) + func (k Key) MarshalText() ([]byte, error) + func (k Key) String() string + func (k Key) Verify(hash []byte, sig Signature) error + type KeyType byte + const KeyTypeEd25519 + const KeyTypeInvalid + const KeyTypeP256 + const KeyTypeSecp256k1 + func ParseKeyTag(b byte) KeyType + func ParseKeyType(s string) (KeyType, bool) + func (t KeyType) AddressType() AddressType + func (t KeyType) Curve() elliptic.Curve + func (t KeyType) IsValid() bool + func (t KeyType) PkHashType() HashType + func (t KeyType) PkPrefix() string + func (t KeyType) PkPrefixBytes() []byte + func (t KeyType) SkHashType() HashType + func (t KeyType) SkPrefix() string + func (t KeyType) SkPrefixBytes() []byte + func (t KeyType) SkePrefix() string + func (t KeyType) SkePrefixBytes() []byte + func (t KeyType) String() string + func (t KeyType) Tag() byte + type Limits struct + Fee int64 + GasLimit int64 + StorageLimit int64 + func (x Limits) Add(y Limits) Limits + type N int64 + func NewN(i int64) N + func (n *N) DecodeBuffer(buf *bytes.Buffer) error + func (n *N) SetInt64(i int64) *N + func (n *N) UnmarshalBinary(data []byte) error + func (n *N) UnmarshalText(d []byte) error + func (n N) Clone() N + func (n N) EncodeBuffer(buf *bytes.Buffer) error + func (n N) Equal(x N) bool + func (n N) Int64() int64 + func (n N) IsZero() bool + func (n N) MarshalBinary() ([]byte, error) + func (n N) MarshalText() ([]byte, error) + func (n N) String() string + type NonceHash struct + func MustParseNonceHash(s string) NonceHash + func NewNonceHash(buf []byte) NonceHash + func ParseNonceHash(s string) (NonceHash, error) + func ParseNonceHashSafe(s string) NonceHash + func (h *NonceHash) UnmarshalBinary(data []byte) error + func (h *NonceHash) UnmarshalText(data []byte) error + func (h NonceHash) Clone() NonceHash + func (h NonceHash) Equal(h2 NonceHash) bool + type OpHash struct + func MustParseOpHash(s string) OpHash + func NewOpHash(buf []byte) OpHash + func ParseOpHash(s string) (OpHash, error) + func (h *OpHash) UnmarshalBinary(data []byte) error + func (h *OpHash) UnmarshalText(data []byte) error + func (h OpHash) Clone() OpHash + func (h OpHash) Equal(h2 OpHash) bool + type OpListListHash struct + func MustParseOpListListHash(s string) OpListListHash + func NewOpListListHash(buf []byte) OpListListHash + func ParseOpListListHash(s string) (OpListListHash, error) + func (h *OpListListHash) UnmarshalBinary(data []byte) error + func (h *OpListListHash) UnmarshalText(data []byte) error + func (h OpListListHash) Clone() OpListListHash + func (h OpListListHash) Equal(h2 OpListListHash) bool + type OpStatus byte + const OpStatusApplied + const OpStatusBacktracked + const OpStatusFailed + const OpStatusInvalid + const OpStatusSkipped + func ParseOpStatus(s string) OpStatus + func (t *OpStatus) UnmarshalText(data []byte) error + func (t OpStatus) IsSuccess() bool + func (t OpStatus) IsValid() bool + func (t OpStatus) MarshalText() ([]byte, error) + func (t OpStatus) String() string + type OpType byte + const OpTypeActivateAccount + const OpTypeBallot + const OpTypeDelegation + const OpTypeDoubleBakingEvidence + const OpTypeDoubleEndorsementEvidence + const OpTypeDoublePreendorsementEvidence + const OpTypeEndorsement + const OpTypeEndorsementWithSlot + const OpTypeFailingNoop + const OpTypeInvalid + const OpTypeOrigination + const OpTypePreendorsement + const OpTypeProposals + const OpTypeRegisterConstant + const OpTypeReveal + const OpTypeSeedNonceRevelation + const OpTypeSetDepositsLimit + const OpTypeTransaction + func ParseOpTag(t byte) OpType + func ParseOpTagVersion(t byte, ver int) OpType + func ParseOpType(s string) OpType + func (t *OpType) UnmarshalText(data []byte) error + func (t OpType) IsValid() bool + func (t OpType) ListId() int + func (t OpType) MarshalText() ([]byte, error) + func (t OpType) MinSize() int + func (t OpType) MinSizeVersion(ver int) int + func (t OpType) String() string + func (t OpType) Tag() byte + func (t OpType) TagVersion(ver int) byte + type Params struct + BakingRewardBonusPerSlot int64 + BakingRewardFixedPortion int64 + BlockReward int64 + BlockRewardV6 [2]int64 + BlockSecurityDeposit int64 + BlocksPerCommitment int64 + BlocksPerCycle int64 + BlocksPerRollSnapshot int64 + BlocksPerStakeSnapshot int64 + BlocksPerVotingPeriod int64 + CacheLayout []string + ChainId ChainIdHash + ConsensusCommitteeSize int + ConsensusThreshold int + CostPerByte int64 + Decimals int + DelayIncrementPerRound time.Duration + Deployment int + DoubleBakingPunishment int64 + EndHeight int64 + EndorsementReward int64 + EndorsementRewardV6 [2]int64 + EndorsementSecurityDeposit int64 + EndorsersPerBlock int + EndorsingRewardPerSlot int64 + FrozenDepositsPercentage int + HardGasLimitPerBlock int64 + HardGasLimitPerOperation int64 + HardStorageLimitPerOperation int64 + LiquidityBakingEscapeEmaThreshold int64 + LiquidityBakingSubsidy int64 + LiquidityBakingSunsetLevel int64 + MaxAllowedGlobalConstantsDepth int + MaxAnonOpsPerBlock int + MaxMichelineBytesLimit int + MaxMichelineNodeCount int + MaxOperationDataLength int + MaxOperationsTTL int64 + MaxProposalsPerDelegate int + MaxRevelationsPerBlock int + MaxSlashingPeriod int64 + MichelsonMaximumTypeSize int + MinProposalQuorum int64 + MinimalBlockDelay time.Duration + MinimalParticipationRatio Ratio + Name string + Network string + NoRewardCycles int64 + NonceLength int + NumVotingPeriods int + OperationTagsVersion int + OriginationBurn int64 + OriginationSize int64 + PreservedCycles int64 + ProofOfWorkNonceSize int + ProofOfWorkThreshold int64 + Protocol ProtocolHash + QuorumMax int64 + QuorumMin int64 + RatioOfFrozenDepositsSlashedPerDoubleEndorsement Ratio + SecurityDepositRampUpCycles int64 + SeedNonceRevelationTip int64 + StartBlockOffset int64 + StartCycle int64 + StartHeight int64 + Symbol string + TestChainDuration int64 + TimeBetweenBlocks [2]time.Duration + Token int64 + TokensPerRoll int64 + Version int + VoteBlockOffset int64 + func NewParams() *Params + func (p *Params) BlockTime() time.Duration + func (p *Params) ContainsCycle(cycle int64) bool + func (p *Params) ContainsHeight(height int64) bool + func (p *Params) ConvertAmount(value float64) int64 + func (p *Params) ConvertValue(amount int64) float64 + func (p *Params) CycleEndHeight(cycle int64) int64 + func (p *Params) CycleFromHeight(height int64) int64 + func (p *Params) CycleStartHeight(cycle int64) int64 + func (p *Params) ForCycle(c int64) *Params + func (p *Params) ForHeight(h int64) *Params + func (p *Params) ForNetwork(net ChainIdHash) *Params + func (p *Params) ForProtocol(proto ProtocolHash) *Params + func (p *Params) IsCycleEnd(height int64) bool + func (p *Params) IsCycleStart(height int64) bool + func (p *Params) IsMainnet() bool + func (p *Params) IsPostBabylon() bool + func (p *Params) IsPreBabylonHeight(height int64) bool + func (p *Params) IsSeedRequired(height int64) bool + func (p *Params) IsSnapshotBlock(height int64) bool + func (p *Params) IsVoteEnd(height int64) bool + func (p *Params) IsVoteStart(height int64) bool + func (p *Params) MaxBlockReward() int64 + func (p *Params) MaxSnapshotIndex() int64 + func (p *Params) Mixin(src *Params) *Params + func (p *Params) SnapshotBaseCycle(cycle int64) int64 + func (p *Params) SnapshotBlock(cycle int64, index int) int64 + func (p *Params) SnapshotBlocks() int64 + func (p *Params) SnapshotIndex(height int64) int + func (p *Params) VoteEndHeight(height int64) int64 + func (p *Params) VoteStartHeight(height int64) int64 + func (p *Params) VotingStartCycleFromHeight(height int64) int64 + func (p Params) Clean() *Params + type PassphraseFunc func() ([]byte, error) + type PayloadHash struct + func MustParsePayloadHash(s string) PayloadHash + func NewPayloadHash(buf []byte) PayloadHash + func ParsePayloadHash(s string) (PayloadHash, error) + func (h *PayloadHash) UnmarshalBinary(data []byte) error + func (h *PayloadHash) UnmarshalText(data []byte) error + func (h PayloadHash) Clone() PayloadHash + func (h PayloadHash) Equal(h2 PayloadHash) bool + type PrivateKey struct + Data []byte + Type KeyType + func GenerateKey(typ KeyType) (PrivateKey, error) + func ParseEncryptedPrivateKey(s string, fn PassphraseFunc) (k PrivateKey, err error) + func ParsePrivateKey(s string) (PrivateKey, error) + func (k *PrivateKey) UnmarshalText(data []byte) error + func (k PrivateKey) Address() Address + func (k PrivateKey) Encrypt(fn PassphraseFunc) (string, error) + func (k PrivateKey) IsValid() bool + func (k PrivateKey) MarshalText() ([]byte, error) + func (k PrivateKey) Public() Key + func (k PrivateKey) Sign(hash []byte) (Signature, error) + func (k PrivateKey) String() string + type ProtocolHash struct + func MustParseProtocolHash(s string) ProtocolHash + func NewProtocolHash(buf []byte) ProtocolHash + func ParseProtocolHash(s string) (ProtocolHash, error) + func ParseProtocolHashSafe(s string) ProtocolHash + func (h *ProtocolHash) UnmarshalBinary(data []byte) error + func (h *ProtocolHash) UnmarshalText(data []byte) error + func (h ProtocolHash) Clone() ProtocolHash + func (h ProtocolHash) Equal(h2 ProtocolHash) bool + type Ratio struct + Den int + Num int + func (r Ratio) Float64() float64 + type RightType byte + const RightTypeBaking + const RightTypeEndorsing + const RightTypeInvalid + func ParseRightType(s string) RightType + func (r *RightType) UnmarshalText(data []byte) error + func (r RightType) IsValid() bool + func (r RightType) MarshalText() ([]byte, error) + func (r RightType) String() string + type Signature struct + Data []byte + Type SignatureType + func MustParseSignature(s string) Signature + func NewSignature(typ SignatureType, data []byte) Signature + func ParseSignature(s string) (Signature, error) + func (s *Signature) DecodeBuffer(buf *bytes.Buffer) error + func (s *Signature) UnmarshalBinary(b []byte) error + func (s *Signature) UnmarshalText(data []byte) error + func (s Signature) Bytes() []byte + func (s Signature) Clone() Signature + func (s Signature) Generic() string + func (s Signature) IsEqual(s2 Signature) bool + func (s Signature) IsValid() bool + func (s Signature) MarshalBinary() ([]byte, error) + func (s Signature) MarshalText() ([]byte, error) + func (s Signature) String() string + type SignatureType byte + const SignatureTypeEd25519 + const SignatureTypeGeneric + const SignatureTypeInvalid + const SignatureTypeP256 + const SignatureTypeSecp256k1 + func ParseSignatureTag(b byte) SignatureType + func (t SignatureType) HashType() HashType + func (t SignatureType) IsValid() bool + func (t SignatureType) Len() int + func (t SignatureType) Prefix() string + func (t SignatureType) PrefixBytes() []byte + func (t SignatureType) String() string + func (t SignatureType) Tag() byte + type VotingPeriodKind byte + const VotingPeriodAdoption + const VotingPeriodCooldown + const VotingPeriodExploration + const VotingPeriodInvalid + const VotingPeriodPromotion + const VotingPeriodProposal + func ParseVotingPeriod(s string) VotingPeriodKind + func ToVotingPeriod(i int) VotingPeriodKind + func (v *VotingPeriodKind) UnmarshalText(data []byte) error + func (v VotingPeriodKind) IsValid() bool + func (v VotingPeriodKind) MarshalText() ([]byte, error) + func (v VotingPeriodKind) Num() int + func (v VotingPeriodKind) String() string + type Z big.Int + func NewZ(i int64) Z + func (z *Z) DecodeBuffer(buf *bytes.Buffer) error + func (z *Z) EncodeBuffer(buf *bytes.Buffer) error + func (z *Z) Set(b *big.Int) *Z + func (z *Z) SetInt64(i int64) *Z + func (z *Z) UnmarshalBinary(data []byte) error + func (z *Z) UnmarshalText(d []byte) error + func (z Z) Big() *big.Int + func (z Z) Clone() Z + func (z Z) Equal(x Z) bool + func (z Z) Int64() int64 + func (z Z) IsZero() bool + func (z Z) MarshalBinary() ([]byte, error) + func (z Z) MarshalText() ([]byte, error) + func (z Z) String() string