Documentation ¶
Index ¶
- Constants
- type Auth
- func (s *Auth) AsBuilder() AuthBuilder
- func (s *Auth) AsSlice() []byte
- func (s *Auth) Nth0() *Byte
- func (s *Auth) Nth1() *Byte
- func (s *Auth) Nth10() *Byte
- func (s *Auth) Nth11() *Byte
- func (s *Auth) Nth12() *Byte
- func (s *Auth) Nth13() *Byte
- func (s *Auth) Nth14() *Byte
- func (s *Auth) Nth15() *Byte
- func (s *Auth) Nth16() *Byte
- func (s *Auth) Nth17() *Byte
- func (s *Auth) Nth18() *Byte
- func (s *Auth) Nth19() *Byte
- func (s *Auth) Nth2() *Byte
- func (s *Auth) Nth20() *Byte
- func (s *Auth) Nth3() *Byte
- func (s *Auth) Nth4() *Byte
- func (s *Auth) Nth5() *Byte
- func (s *Auth) Nth6() *Byte
- func (s *Auth) Nth7() *Byte
- func (s *Auth) Nth8() *Byte
- func (s *Auth) Nth9() *Byte
- func (s *Auth) RawData() []byte
- type AuthBuilder
- func (s *AuthBuilder) Build() Auth
- func (s *AuthBuilder) Nth0(v Byte) *AuthBuilder
- func (s *AuthBuilder) Nth1(v Byte) *AuthBuilder
- func (s *AuthBuilder) Nth10(v Byte) *AuthBuilder
- func (s *AuthBuilder) Nth11(v Byte) *AuthBuilder
- func (s *AuthBuilder) Nth12(v Byte) *AuthBuilder
- func (s *AuthBuilder) Nth13(v Byte) *AuthBuilder
- func (s *AuthBuilder) Nth14(v Byte) *AuthBuilder
- func (s *AuthBuilder) Nth15(v Byte) *AuthBuilder
- func (s *AuthBuilder) Nth16(v Byte) *AuthBuilder
- func (s *AuthBuilder) Nth17(v Byte) *AuthBuilder
- func (s *AuthBuilder) Nth18(v Byte) *AuthBuilder
- func (s *AuthBuilder) Nth19(v Byte) *AuthBuilder
- func (s *AuthBuilder) Nth2(v Byte) *AuthBuilder
- func (s *AuthBuilder) Nth20(v Byte) *AuthBuilder
- func (s *AuthBuilder) Nth3(v Byte) *AuthBuilder
- func (s *AuthBuilder) Nth4(v Byte) *AuthBuilder
- func (s *AuthBuilder) Nth5(v Byte) *AuthBuilder
- func (s *AuthBuilder) Nth6(v Byte) *AuthBuilder
- func (s *AuthBuilder) Nth7(v Byte) *AuthBuilder
- func (s *AuthBuilder) Nth8(v Byte) *AuthBuilder
- func (s *AuthBuilder) Nth9(v Byte) *AuthBuilder
- func (s *AuthBuilder) Set(v [21]Byte) *AuthBuilder
- type Byte
- type Bytes
- type BytesBuilder
- type BytesOpt
- type BytesOptBuilder
- type Identity
- func (s *Identity) AsBuilder() IdentityBuilder
- func (s *Identity) AsSlice() []byte
- func (s *Identity) CountExtraFields() uint
- func (s *Identity) FieldCount() uint
- func (s *Identity) HasExtraFields() bool
- func (s *Identity) Identity() *Auth
- func (s *Identity) IsEmpty() bool
- func (s *Identity) Len() uint
- func (s *Identity) Proofs() *SmtProofEntryVec
- func (s *Identity) TotalSize() uint
- type IdentityBuilder
- type IdentityOpt
- type IdentityOptBuilder
- type Number
- type OmniLockWitnessLock
- func (s *OmniLockWitnessLock) AsBuilder() OmniLockWitnessLockBuilder
- func (s *OmniLockWitnessLock) AsSlice() []byte
- func (s *OmniLockWitnessLock) CountExtraFields() uint
- func (s *OmniLockWitnessLock) FieldCount() uint
- func (s *OmniLockWitnessLock) HasExtraFields() bool
- func (s *OmniLockWitnessLock) IsEmpty() bool
- func (s *OmniLockWitnessLock) Len() uint
- func (s *OmniLockWitnessLock) OmniIdentity() *IdentityOpt
- func (s *OmniLockWitnessLock) Preimage() *BytesOpt
- func (s *OmniLockWitnessLock) Signature() *BytesOpt
- func (s *OmniLockWitnessLock) TotalSize() uint
- type OmniLockWitnessLockBuilder
- func (s *OmniLockWitnessLockBuilder) Build() OmniLockWitnessLock
- func (s *OmniLockWitnessLockBuilder) OmniIdentity(v IdentityOpt) *OmniLockWitnessLockBuilder
- func (s *OmniLockWitnessLockBuilder) Preimage(v BytesOpt) *OmniLockWitnessLockBuilder
- func (s *OmniLockWitnessLockBuilder) Signature(v BytesOpt) *OmniLockWitnessLockBuilder
- type SmtProof
- type SmtProofBuilder
- type SmtProofEntry
- func (s *SmtProofEntry) AsBuilder() SmtProofEntryBuilder
- func (s *SmtProofEntry) AsSlice() []byte
- func (s *SmtProofEntry) CountExtraFields() uint
- func (s *SmtProofEntry) FieldCount() uint
- func (s *SmtProofEntry) HasExtraFields() bool
- func (s *SmtProofEntry) IsEmpty() bool
- func (s *SmtProofEntry) Len() uint
- func (s *SmtProofEntry) Mask() *Byte
- func (s *SmtProofEntry) Proof() *SmtProof
- func (s *SmtProofEntry) TotalSize() uint
- type SmtProofEntryBuilder
- type SmtProofEntryVec
- func (s *SmtProofEntryVec) AsBuilder() SmtProofEntryVecBuilder
- func (s *SmtProofEntryVec) AsSlice() []byte
- func (s *SmtProofEntryVec) Get(index uint) *SmtProofEntry
- func (s *SmtProofEntryVec) IsEmpty() bool
- func (s *SmtProofEntryVec) ItemCount() uint
- func (s *SmtProofEntryVec) Len() uint
- func (s *SmtProofEntryVec) TotalSize() uint
- type SmtProofEntryVecBuilder
- func (s *SmtProofEntryVecBuilder) Build() SmtProofEntryVec
- func (s *SmtProofEntryVecBuilder) Extend(iter []SmtProofEntry) *SmtProofEntryVecBuilder
- func (s *SmtProofEntryVecBuilder) Push(v SmtProofEntry) *SmtProofEntryVecBuilder
- func (s *SmtProofEntryVecBuilder) Replace(index uint, v SmtProofEntry) *SmtProofEntry
- func (s *SmtProofEntryVecBuilder) Set(v []SmtProofEntry) *SmtProofEntryVecBuilder
Constants ¶
View Source
const HeaderSizeUint uint32 = 4
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
func AuthDefault ¶
func AuthDefault() Auth
func AuthFromSliceUnchecked ¶
func (*Auth) AsBuilder ¶
func (s *Auth) AsBuilder() AuthBuilder
type AuthBuilder ¶
type AuthBuilder struct {
// contains filtered or unexported fields
}
func NewAuthBuilder ¶
func NewAuthBuilder() *AuthBuilder
func (*AuthBuilder) Build ¶
func (s *AuthBuilder) Build() Auth
func (*AuthBuilder) Nth0 ¶
func (s *AuthBuilder) Nth0(v Byte) *AuthBuilder
func (*AuthBuilder) Nth1 ¶
func (s *AuthBuilder) Nth1(v Byte) *AuthBuilder
func (*AuthBuilder) Nth10 ¶
func (s *AuthBuilder) Nth10(v Byte) *AuthBuilder
func (*AuthBuilder) Nth11 ¶
func (s *AuthBuilder) Nth11(v Byte) *AuthBuilder
func (*AuthBuilder) Nth12 ¶
func (s *AuthBuilder) Nth12(v Byte) *AuthBuilder
func (*AuthBuilder) Nth13 ¶
func (s *AuthBuilder) Nth13(v Byte) *AuthBuilder
func (*AuthBuilder) Nth14 ¶
func (s *AuthBuilder) Nth14(v Byte) *AuthBuilder
func (*AuthBuilder) Nth15 ¶
func (s *AuthBuilder) Nth15(v Byte) *AuthBuilder
func (*AuthBuilder) Nth16 ¶
func (s *AuthBuilder) Nth16(v Byte) *AuthBuilder
func (*AuthBuilder) Nth17 ¶
func (s *AuthBuilder) Nth17(v Byte) *AuthBuilder
func (*AuthBuilder) Nth18 ¶
func (s *AuthBuilder) Nth18(v Byte) *AuthBuilder
func (*AuthBuilder) Nth19 ¶
func (s *AuthBuilder) Nth19(v Byte) *AuthBuilder
func (*AuthBuilder) Nth2 ¶
func (s *AuthBuilder) Nth2(v Byte) *AuthBuilder
func (*AuthBuilder) Nth20 ¶
func (s *AuthBuilder) Nth20(v Byte) *AuthBuilder
func (*AuthBuilder) Nth3 ¶
func (s *AuthBuilder) Nth3(v Byte) *AuthBuilder
func (*AuthBuilder) Nth4 ¶
func (s *AuthBuilder) Nth4(v Byte) *AuthBuilder
func (*AuthBuilder) Nth5 ¶
func (s *AuthBuilder) Nth5(v Byte) *AuthBuilder
func (*AuthBuilder) Nth6 ¶
func (s *AuthBuilder) Nth6(v Byte) *AuthBuilder
func (*AuthBuilder) Nth7 ¶
func (s *AuthBuilder) Nth7(v Byte) *AuthBuilder
func (*AuthBuilder) Nth8 ¶
func (s *AuthBuilder) Nth8(v Byte) *AuthBuilder
func (*AuthBuilder) Nth9 ¶
func (s *AuthBuilder) Nth9(v Byte) *AuthBuilder
func (*AuthBuilder) Set ¶
func (s *AuthBuilder) Set(v [21]Byte) *AuthBuilder
type Byte ¶
type Byte [1]byte
Byte is the primitive type
func ByteDefault ¶
func ByteDefault() Byte
func ByteFromSliceUnchecked ¶
type Bytes ¶
type Bytes struct {
// contains filtered or unexported fields
}
func BytesDefault ¶
func BytesDefault() Bytes
func BytesFromSliceUnchecked ¶
func (*Bytes) AsBuilder ¶
func (s *Bytes) AsBuilder() BytesBuilder
type BytesBuilder ¶
type BytesBuilder struct {
// contains filtered or unexported fields
}
func NewBytesBuilder ¶
func NewBytesBuilder() *BytesBuilder
func (*BytesBuilder) Build ¶
func (s *BytesBuilder) Build() Bytes
func (*BytesBuilder) Extend ¶
func (s *BytesBuilder) Extend(iter []Byte) *BytesBuilder
func (*BytesBuilder) Push ¶
func (s *BytesBuilder) Push(v Byte) *BytesBuilder
func (*BytesBuilder) Set ¶
func (s *BytesBuilder) Set(v []Byte) *BytesBuilder
type BytesOpt ¶
type BytesOpt struct {
// contains filtered or unexported fields
}
func BytesOptDefault ¶
func BytesOptDefault() BytesOpt
func (*BytesOpt) AsBuilder ¶
func (s *BytesOpt) AsBuilder() BytesOptBuilder
type BytesOptBuilder ¶
type BytesOptBuilder struct {
// contains filtered or unexported fields
}
func NewBytesOptBuilder ¶
func NewBytesOptBuilder() *BytesOptBuilder
func (*BytesOptBuilder) Build ¶
func (s *BytesOptBuilder) Build() BytesOpt
func (*BytesOptBuilder) Set ¶
func (s *BytesOptBuilder) Set(v Bytes) *BytesOptBuilder
type Identity ¶
type Identity struct {
// contains filtered or unexported fields
}
func IdentityDefault ¶
func IdentityDefault() Identity
func (*Identity) AsBuilder ¶
func (s *Identity) AsBuilder() IdentityBuilder
func (*Identity) CountExtraFields ¶
func (*Identity) FieldCount ¶
func (*Identity) HasExtraFields ¶
func (*Identity) Proofs ¶
func (s *Identity) Proofs() *SmtProofEntryVec
type IdentityBuilder ¶
type IdentityBuilder struct {
// contains filtered or unexported fields
}
func NewIdentityBuilder ¶
func NewIdentityBuilder() *IdentityBuilder
func (*IdentityBuilder) Build ¶
func (s *IdentityBuilder) Build() Identity
func (*IdentityBuilder) Identity ¶
func (s *IdentityBuilder) Identity(v Auth) *IdentityBuilder
func (*IdentityBuilder) Proofs ¶
func (s *IdentityBuilder) Proofs(v SmtProofEntryVec) *IdentityBuilder
type IdentityOpt ¶
type IdentityOpt struct {
// contains filtered or unexported fields
}
func IdentityOptDefault ¶
func IdentityOptDefault() IdentityOpt
func IdentityOptFromSlice ¶
func IdentityOptFromSlice(slice []byte, compatible bool) (*IdentityOpt, error)
func IdentityOptFromSliceUnchecked ¶
func IdentityOptFromSliceUnchecked(slice []byte) *IdentityOpt
func (*IdentityOpt) AsBuilder ¶
func (s *IdentityOpt) AsBuilder() IdentityOptBuilder
func (*IdentityOpt) AsSlice ¶
func (s *IdentityOpt) AsSlice() []byte
func (*IdentityOpt) IntoIdentity ¶
func (s *IdentityOpt) IntoIdentity() (*Identity, error)
func (*IdentityOpt) IsNone ¶
func (s *IdentityOpt) IsNone() bool
func (*IdentityOpt) IsSome ¶
func (s *IdentityOpt) IsSome() bool
type IdentityOptBuilder ¶
type IdentityOptBuilder struct {
// contains filtered or unexported fields
}
func NewIdentityOptBuilder ¶
func NewIdentityOptBuilder() *IdentityOptBuilder
func (*IdentityOptBuilder) Build ¶
func (s *IdentityOptBuilder) Build() IdentityOpt
func (*IdentityOptBuilder) Set ¶
func (s *IdentityOptBuilder) Set(v Identity) *IdentityOptBuilder
type OmniLockWitnessLock ¶
type OmniLockWitnessLock struct {
// contains filtered or unexported fields
}
func OmniLockWitnessLockDefault ¶
func OmniLockWitnessLockDefault() OmniLockWitnessLock
func OmniLockWitnessLockFromSlice ¶
func OmniLockWitnessLockFromSlice(slice []byte, compatible bool) (*OmniLockWitnessLock, error)
func OmniLockWitnessLockFromSliceUnchecked ¶
func OmniLockWitnessLockFromSliceUnchecked(slice []byte) *OmniLockWitnessLock
func (*OmniLockWitnessLock) AsBuilder ¶
func (s *OmniLockWitnessLock) AsBuilder() OmniLockWitnessLockBuilder
func (*OmniLockWitnessLock) AsSlice ¶
func (s *OmniLockWitnessLock) AsSlice() []byte
func (*OmniLockWitnessLock) CountExtraFields ¶
func (s *OmniLockWitnessLock) CountExtraFields() uint
func (*OmniLockWitnessLock) FieldCount ¶
func (s *OmniLockWitnessLock) FieldCount() uint
func (*OmniLockWitnessLock) HasExtraFields ¶
func (s *OmniLockWitnessLock) HasExtraFields() bool
func (*OmniLockWitnessLock) IsEmpty ¶
func (s *OmniLockWitnessLock) IsEmpty() bool
func (*OmniLockWitnessLock) Len ¶
func (s *OmniLockWitnessLock) Len() uint
func (*OmniLockWitnessLock) OmniIdentity ¶
func (s *OmniLockWitnessLock) OmniIdentity() *IdentityOpt
func (*OmniLockWitnessLock) Preimage ¶
func (s *OmniLockWitnessLock) Preimage() *BytesOpt
func (*OmniLockWitnessLock) Signature ¶
func (s *OmniLockWitnessLock) Signature() *BytesOpt
func (*OmniLockWitnessLock) TotalSize ¶
func (s *OmniLockWitnessLock) TotalSize() uint
type OmniLockWitnessLockBuilder ¶
type OmniLockWitnessLockBuilder struct {
// contains filtered or unexported fields
}
func NewOmniLockWitnessLockBuilder ¶
func NewOmniLockWitnessLockBuilder() *OmniLockWitnessLockBuilder
func (*OmniLockWitnessLockBuilder) Build ¶
func (s *OmniLockWitnessLockBuilder) Build() OmniLockWitnessLock
func (*OmniLockWitnessLockBuilder) OmniIdentity ¶
func (s *OmniLockWitnessLockBuilder) OmniIdentity(v IdentityOpt) *OmniLockWitnessLockBuilder
func (*OmniLockWitnessLockBuilder) Preimage ¶
func (s *OmniLockWitnessLockBuilder) Preimage(v BytesOpt) *OmniLockWitnessLockBuilder
func (*OmniLockWitnessLockBuilder) Signature ¶
func (s *OmniLockWitnessLockBuilder) Signature(v BytesOpt) *OmniLockWitnessLockBuilder
type SmtProof ¶
type SmtProof struct {
// contains filtered or unexported fields
}
func SmtProofDefault ¶
func SmtProofDefault() SmtProof
func (*SmtProof) AsBuilder ¶
func (s *SmtProof) AsBuilder() SmtProofBuilder
type SmtProofBuilder ¶
type SmtProofBuilder struct {
// contains filtered or unexported fields
}
func NewSmtProofBuilder ¶
func NewSmtProofBuilder() *SmtProofBuilder
func (*SmtProofBuilder) Build ¶
func (s *SmtProofBuilder) Build() SmtProof
func (*SmtProofBuilder) Extend ¶
func (s *SmtProofBuilder) Extend(iter []Byte) *SmtProofBuilder
func (*SmtProofBuilder) Push ¶
func (s *SmtProofBuilder) Push(v Byte) *SmtProofBuilder
func (*SmtProofBuilder) Set ¶
func (s *SmtProofBuilder) Set(v []Byte) *SmtProofBuilder
type SmtProofEntry ¶
type SmtProofEntry struct {
// contains filtered or unexported fields
}
func SmtProofEntryDefault ¶
func SmtProofEntryDefault() SmtProofEntry
func SmtProofEntryFromSlice ¶
func SmtProofEntryFromSlice(slice []byte, compatible bool) (*SmtProofEntry, error)
func SmtProofEntryFromSliceUnchecked ¶
func SmtProofEntryFromSliceUnchecked(slice []byte) *SmtProofEntry
func (*SmtProofEntry) AsBuilder ¶
func (s *SmtProofEntry) AsBuilder() SmtProofEntryBuilder
func (*SmtProofEntry) AsSlice ¶
func (s *SmtProofEntry) AsSlice() []byte
func (*SmtProofEntry) CountExtraFields ¶
func (s *SmtProofEntry) CountExtraFields() uint
func (*SmtProofEntry) FieldCount ¶
func (s *SmtProofEntry) FieldCount() uint
func (*SmtProofEntry) HasExtraFields ¶
func (s *SmtProofEntry) HasExtraFields() bool
func (*SmtProofEntry) IsEmpty ¶
func (s *SmtProofEntry) IsEmpty() bool
func (*SmtProofEntry) Len ¶
func (s *SmtProofEntry) Len() uint
func (*SmtProofEntry) Mask ¶
func (s *SmtProofEntry) Mask() *Byte
func (*SmtProofEntry) Proof ¶
func (s *SmtProofEntry) Proof() *SmtProof
func (*SmtProofEntry) TotalSize ¶
func (s *SmtProofEntry) TotalSize() uint
type SmtProofEntryBuilder ¶
type SmtProofEntryBuilder struct {
// contains filtered or unexported fields
}
func NewSmtProofEntryBuilder ¶
func NewSmtProofEntryBuilder() *SmtProofEntryBuilder
func (*SmtProofEntryBuilder) Build ¶
func (s *SmtProofEntryBuilder) Build() SmtProofEntry
func (*SmtProofEntryBuilder) Mask ¶
func (s *SmtProofEntryBuilder) Mask(v Byte) *SmtProofEntryBuilder
func (*SmtProofEntryBuilder) Proof ¶
func (s *SmtProofEntryBuilder) Proof(v SmtProof) *SmtProofEntryBuilder
type SmtProofEntryVec ¶
type SmtProofEntryVec struct {
// contains filtered or unexported fields
}
func SmtProofEntryVecDefault ¶
func SmtProofEntryVecDefault() SmtProofEntryVec
func SmtProofEntryVecFromSlice ¶
func SmtProofEntryVecFromSlice(slice []byte, compatible bool) (*SmtProofEntryVec, error)
func SmtProofEntryVecFromSliceUnchecked ¶
func SmtProofEntryVecFromSliceUnchecked(slice []byte) *SmtProofEntryVec
func (*SmtProofEntryVec) AsBuilder ¶
func (s *SmtProofEntryVec) AsBuilder() SmtProofEntryVecBuilder
func (*SmtProofEntryVec) AsSlice ¶
func (s *SmtProofEntryVec) AsSlice() []byte
func (*SmtProofEntryVec) Get ¶
func (s *SmtProofEntryVec) Get(index uint) *SmtProofEntry
if *SmtProofEntry is nil, index is out of bounds
func (*SmtProofEntryVec) IsEmpty ¶
func (s *SmtProofEntryVec) IsEmpty() bool
func (*SmtProofEntryVec) ItemCount ¶
func (s *SmtProofEntryVec) ItemCount() uint
func (*SmtProofEntryVec) Len ¶
func (s *SmtProofEntryVec) Len() uint
func (*SmtProofEntryVec) TotalSize ¶
func (s *SmtProofEntryVec) TotalSize() uint
type SmtProofEntryVecBuilder ¶
type SmtProofEntryVecBuilder struct {
// contains filtered or unexported fields
}
func NewSmtProofEntryVecBuilder ¶
func NewSmtProofEntryVecBuilder() *SmtProofEntryVecBuilder
func (*SmtProofEntryVecBuilder) Build ¶
func (s *SmtProofEntryVecBuilder) Build() SmtProofEntryVec
func (*SmtProofEntryVecBuilder) Extend ¶
func (s *SmtProofEntryVecBuilder) Extend(iter []SmtProofEntry) *SmtProofEntryVecBuilder
func (*SmtProofEntryVecBuilder) Push ¶
func (s *SmtProofEntryVecBuilder) Push(v SmtProofEntry) *SmtProofEntryVecBuilder
func (*SmtProofEntryVecBuilder) Replace ¶
func (s *SmtProofEntryVecBuilder) Replace(index uint, v SmtProofEntry) *SmtProofEntry
func (*SmtProofEntryVecBuilder) Set ¶
func (s *SmtProofEntryVecBuilder) Set(v []SmtProofEntry) *SmtProofEntryVecBuilder
Click to show internal directories.
Click to hide internal directories.