molecule

package
v2.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 26, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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 AuthFromSlice

func AuthFromSlice(slice []byte, _compatible bool) (*Auth, error)

func AuthFromSliceUnchecked

func AuthFromSliceUnchecked(slice []byte) *Auth

func (*Auth) AsBuilder

func (s *Auth) AsBuilder() AuthBuilder

func (*Auth) AsSlice

func (s *Auth) AsSlice() []byte

func (*Auth) Nth0

func (s *Auth) Nth0() *Byte

func (*Auth) Nth1

func (s *Auth) Nth1() *Byte

func (*Auth) Nth10

func (s *Auth) Nth10() *Byte

func (*Auth) Nth11

func (s *Auth) Nth11() *Byte

func (*Auth) Nth12

func (s *Auth) Nth12() *Byte

func (*Auth) Nth13

func (s *Auth) Nth13() *Byte

func (*Auth) Nth14

func (s *Auth) Nth14() *Byte

func (*Auth) Nth15

func (s *Auth) Nth15() *Byte

func (*Auth) Nth16

func (s *Auth) Nth16() *Byte

func (*Auth) Nth17

func (s *Auth) Nth17() *Byte

func (*Auth) Nth18

func (s *Auth) Nth18() *Byte

func (*Auth) Nth19

func (s *Auth) Nth19() *Byte

func (*Auth) Nth2

func (s *Auth) Nth2() *Byte

func (*Auth) Nth20

func (s *Auth) Nth20() *Byte

func (*Auth) Nth3

func (s *Auth) Nth3() *Byte

func (*Auth) Nth4

func (s *Auth) Nth4() *Byte

func (*Auth) Nth5

func (s *Auth) Nth5() *Byte

func (*Auth) Nth6

func (s *Auth) Nth6() *Byte

func (*Auth) Nth7

func (s *Auth) Nth7() *Byte

func (*Auth) Nth8

func (s *Auth) Nth8() *Byte

func (*Auth) Nth9

func (s *Auth) Nth9() *Byte

func (*Auth) RawData

func (s *Auth) RawData() []byte

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 ByteFromSlice

func ByteFromSlice(slice []byte, _compatible bool) (*Byte, error)

func ByteFromSliceUnchecked

func ByteFromSliceUnchecked(slice []byte) *Byte

func NewByte

func NewByte(b byte) Byte

func (*Byte) AsSlice

func (b *Byte) AsSlice() []byte

type Bytes

type Bytes struct {
	// contains filtered or unexported fields
}

func BytesDefault

func BytesDefault() Bytes

func BytesFromSlice

func BytesFromSlice(slice []byte, _compatible bool) (*Bytes, error)

func BytesFromSliceUnchecked

func BytesFromSliceUnchecked(slice []byte) *Bytes

func (*Bytes) AsBuilder

func (s *Bytes) AsBuilder() BytesBuilder

func (*Bytes) AsSlice

func (s *Bytes) AsSlice() []byte

func (*Bytes) Get

func (s *Bytes) Get(index uint) *Byte

if *Byte is nil, index is out of bounds

func (*Bytes) IsEmpty

func (s *Bytes) IsEmpty() bool

func (*Bytes) ItemCount

func (s *Bytes) ItemCount() uint

func (*Bytes) Len

func (s *Bytes) Len() uint

func (*Bytes) RawData

func (s *Bytes) RawData() []byte

func (*Bytes) TotalSize

func (s *Bytes) TotalSize() uint

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) Replace

func (s *BytesBuilder) Replace(index uint, v Byte) *Byte

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 BytesOptFromSlice

func BytesOptFromSlice(slice []byte, compatible bool) (*BytesOpt, error)

func BytesOptFromSliceUnchecked

func BytesOptFromSliceUnchecked(slice []byte) *BytesOpt

func (*BytesOpt) AsBuilder

func (s *BytesOpt) AsBuilder() BytesOptBuilder

func (*BytesOpt) AsSlice

func (s *BytesOpt) AsSlice() []byte

func (*BytesOpt) IntoBytes

func (s *BytesOpt) IntoBytes() (*Bytes, error)

func (*BytesOpt) IsNone

func (s *BytesOpt) IsNone() bool

func (*BytesOpt) IsSome

func (s *BytesOpt) IsSome() bool

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

type Identity

type Identity struct {
	// contains filtered or unexported fields
}

func IdentityDefault

func IdentityDefault() Identity

func IdentityFromSlice

func IdentityFromSlice(slice []byte, compatible bool) (*Identity, error)

func IdentityFromSliceUnchecked

func IdentityFromSliceUnchecked(slice []byte) *Identity

func (*Identity) AsBuilder

func (s *Identity) AsBuilder() IdentityBuilder

func (*Identity) AsSlice

func (s *Identity) AsSlice() []byte

func (*Identity) CountExtraFields

func (s *Identity) CountExtraFields() uint

func (*Identity) FieldCount

func (s *Identity) FieldCount() uint

func (*Identity) HasExtraFields

func (s *Identity) HasExtraFields() bool

func (*Identity) Identity

func (s *Identity) Identity() *Auth

func (*Identity) IsEmpty

func (s *Identity) IsEmpty() bool

func (*Identity) Len

func (s *Identity) Len() uint

func (*Identity) Proofs

func (s *Identity) Proofs() *SmtProofEntryVec

func (*Identity) TotalSize

func (s *Identity) TotalSize() uint

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

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

type Number

type Number uint32

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 (*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 (*OmniLockWitnessLockBuilder) OmniIdentity

func (*OmniLockWitnessLockBuilder) Preimage

func (*OmniLockWitnessLockBuilder) Signature

type SmtProof

type SmtProof struct {
	// contains filtered or unexported fields
}

func SmtProofDefault

func SmtProofDefault() SmtProof

func SmtProofFromSlice

func SmtProofFromSlice(slice []byte, _compatible bool) (*SmtProof, error)

func SmtProofFromSliceUnchecked

func SmtProofFromSliceUnchecked(slice []byte) *SmtProof

func (*SmtProof) AsBuilder

func (s *SmtProof) AsBuilder() SmtProofBuilder

func (*SmtProof) AsSlice

func (s *SmtProof) AsSlice() []byte

func (*SmtProof) Get

func (s *SmtProof) Get(index uint) *Byte

if *Byte is nil, index is out of bounds

func (*SmtProof) IsEmpty

func (s *SmtProof) IsEmpty() bool

func (*SmtProof) ItemCount

func (s *SmtProof) ItemCount() uint

func (*SmtProof) Len

func (s *SmtProof) Len() uint

func (*SmtProof) RawData

func (s *SmtProof) RawData() []byte

func (*SmtProof) TotalSize

func (s *SmtProof) TotalSize() uint

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) Replace

func (s *SmtProofBuilder) Replace(index uint, v Byte) *Byte

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 (*SmtProofEntryBuilder) Mask

func (*SmtProofEntryBuilder) Proof

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 (*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 (*SmtProofEntryVecBuilder) Extend

func (*SmtProofEntryVecBuilder) Push

func (*SmtProofEntryVecBuilder) Replace

func (*SmtProofEntryVecBuilder) Set

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL