Documentation ¶
Index ¶
Constants ¶
View Source
const ( KTSecp256k1 = "secp256k1" KTBLS = "bls" )
View Source
const ( IKTUnknown = -1 IKTSecp256k1 = iota IKTBLS )
View Source
const BigIntMaxSerializedLen = 128
View Source
const SignatureMaxLength = 200
Variables ¶
View Source
var EmptyInt = BigInt{}
Functions ¶
func Deserialize ¶
Types ¶
type BigInt ¶
func NewIntFromString ¶
type BitField ¶
type BitField struct {
// contains filtered or unexported fields
}
func BitFieldFromSet ¶
func NewBitField ¶
func NewBitField() BitField
type ModVerifyParams ¶
func (*ModVerifyParams) MarshalCBOR ¶
func (t *ModVerifyParams) MarshalCBOR(w io.Writer) error
func (*ModVerifyParams) UnmarshalCBOR ¶
func (t *ModVerifyParams) UnmarshalCBOR(r io.Reader) error
type SignedVoucher ¶
type SignedVoucher struct { TimeLock uint64 SecretPreimage []byte Extra *ModVerifyParams Lane uint64 Nonce uint64 Amount BigInt MinCloseHeight uint64 Merges []Merge Signature *Signature }
func (*SignedVoucher) MarshalCBOR ¶
func (t *SignedVoucher) MarshalCBOR(w io.Writer) error
func (*SignedVoucher) SigningBytes ¶ added in v0.0.3
func (sv *SignedVoucher) SigningBytes() ([]byte, error)
func (*SignedVoucher) UnmarshalCBOR ¶
func (t *SignedVoucher) UnmarshalCBOR(r io.Reader) error
Click to show internal directories.
Click to hide internal directories.