Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthFlag ¶
type AuthFlag byte
const ( AuthFlagCKBSecp256k1Blake160 AuthFlag = 0x0 AuthFlagEthereum AuthFlag = 0x1 AuthFlagEOS AuthFlag = 0x2 AuthFlagTRON AuthFlag = 0x3 AuthFlagBitcoin AuthFlag = 0x4 AuthFlagDogcoin AuthFlag = 0x5 AuthFlagCKBMultiSig AuthFlag = 0x6 AuthFlagLockScriptHash AuthFlag = 0xFC AuthFlagExec AuthFlag = 0xFD AuthFlagDynamicLinking AuthFlag = 0xFE )
type Authentication ¶
func DecodeToAuthentication ¶
func DecodeToAuthentication(in []byte) (*Authentication, error)
func (Authentication) Encode ¶
func (a Authentication) Encode() []byte
type OmniConfig ¶
type OmniConfig struct { Flag byte AdminListCellTypeId [32]byte MinimumCKBExponentInAcp byte MinimumSUDTExponentInAcp byte SinceForTimeLock uint8 TypeScriptHashForSupply [32]byte }
func DecodeToOmniConfig ¶
func DecodeToOmniConfig(in []byte) (*OmniConfig, error)
func (OmniConfig) Encode ¶
func (o OmniConfig) Encode() []byte
func (OmniConfig) IsAdminModeEnabled ¶
func (o OmniConfig) IsAdminModeEnabled() bool
func (OmniConfig) IsAnyoneCanPayModeEnabled ¶
func (o OmniConfig) IsAnyoneCanPayModeEnabled() bool
func (OmniConfig) IsSupplyModeEnabled ¶
func (o OmniConfig) IsSupplyModeEnabled() bool
func (OmniConfig) IsTimeLockModeEnabled ¶
func (o OmniConfig) IsTimeLockModeEnabled() bool
type OmnilockArgs ¶
type OmnilockArgs struct { Authentication *Authentication OmniConfig *OmniConfig }
func NewOmnilockArgsFromAddress ¶
func NewOmnilockArgsFromAddress(address string) (*OmnilockArgs, error)
func NewOmnilockArgsFromAgrs ¶
func NewOmnilockArgsFromAgrs(args []byte) (*OmnilockArgs, error)
func (OmnilockArgs) Encode ¶
func (o OmnilockArgs) Encode() []byte
type OmnilockFlag ¶
type OmnilockFlag byte
const ( OmnilockFlagCKBSecp256k1Blake160 OmnilockFlag = 0x0 OmnilockFlagLockScriptHash OmnilockFlag = 0xfc )
type OmnilockIdentity ¶
type OmnilockIdentity struct { Identity *Auth Proofs []*SmtProofEntry }
func UnpackIdentityOpt ¶
func UnpackIdentityOpt(v *molecule.IdentityOpt) *OmnilockIdentity
func (*OmnilockIdentity) Pack ¶
func (o *OmnilockIdentity) Pack() *molecule.Identity
func (*OmnilockIdentity) PackOpt ¶
func (o *OmnilockIdentity) PackOpt() *molecule.IdentityOpt
type OmnilockWitnessLock ¶
type OmnilockWitnessLock struct { Signature []byte OmnilockIdentity *OmnilockIdentity Preimage []byte }
func DeserializeOmnilockWitnessLock ¶
func DeserializeOmnilockWitnessLock(in []byte) (*OmnilockWitnessLock, error)
func UnpackOmnilockWitnessLock ¶
func UnpackOmnilockWitnessLock(v *molecule.OmniLockWitnessLock) *OmnilockWitnessLock
func (*OmnilockWitnessLock) Pack ¶
func (o *OmnilockWitnessLock) Pack() *molecule.OmniLockWitnessLock
func (*OmnilockWitnessLock) Serialize ¶
func (o *OmnilockWitnessLock) Serialize() []byte
func (*OmnilockWitnessLock) SerializeAsPlaceholder ¶
func (o *OmnilockWitnessLock) SerializeAsPlaceholder() []byte
type SmtProofEntry ¶
func UnpackSmtProofEntry ¶
func UnpackSmtProofEntry(v *molecule.SmtProofEntry) *SmtProofEntry
func (*SmtProofEntry) Pack ¶
func (o *SmtProofEntry) Pack() *molecule.SmtProofEntry
Click to show internal directories.
Click to hide internal directories.