Bls12381PublicKey
type Bls12381PublicKey
A bls12381 min-sig public key.
BCS
The BCS serialized form of this type is specified in [`bcs-schema.abnf`](https://github.com/iotaledger/iota-rust-sdk/blob/develop/crates/iota-sdk-types/bcs-schema.abnf\).
Due to historical reasons, even though a min-sig `Bls12381PublicKey` has a fixed-length of 96, IOTA's binary representation of a min-sig `Bls12381PublicKey` is prefixed with its length meaning its serialized binary form (in bcs) is 97 bytes long vs a more compact 96 bytes.
type Bls12381PublicKey struct {
// contains filtered or unexported fields
}
func Bls12381PublicKeyFromBcs
func Bls12381PublicKeyFromBcs(bcs []byte) (*Bls12381PublicKey, error)
Create this type from BCS encoded bytes.
func Bls12381PublicKeyFromBytes
func Bls12381PublicKeyFromBytes(bytes []byte) (*Bls12381PublicKey, error)
func Bls12381PublicKeyFromJson
func Bls12381PublicKeyFromJson(json string) (*Bls12381PublicKey, error)
Create this type from a JSON encoded string.
func Bls12381PublicKeyFromStr
func Bls12381PublicKeyFromStr(s string) (*Bls12381PublicKey, error)
func Bls12381PublicKeyRandom
func Bls12381PublicKeyRandom() *Bls12381PublicKey
func LiftFromExternalBls12381PublicKey
func LiftFromExternalBls12381PublicKey(handle uint64) *Bls12381PublicKey
func (*Bls12381PublicKey) Destroy
func (object *Bls12381PublicKey) Destroy()
func (*Bls12381PublicKey) Eq
func (_self *Bls12381PublicKey) Eq(other *Bls12381PublicKey) bool
func (*Bls12381PublicKey) Hash
func (_self *Bls12381PublicKey) Hash() uint64
func (*Bls12381PublicKey) Ne
func (_self *Bls12381PublicKey) Ne(other *Bls12381PublicKey) bool
func (*Bls12381PublicKey) ToBcs
func (_self *Bls12381PublicKey) ToBcs() ([]byte, error)
Convert this type to BCS encoded bytes.
func (*Bls12381PublicKey) ToBytes
func (_self *Bls12381PublicKey) ToBytes() []byte
func (*Bls12381PublicKey) ToDisplayString
func (_self *Bls12381PublicKey) ToDisplayString() string
Render this type as human-readable text.
Some types also print this through the binding's native string conversion; this method is the spelling every object type has.
The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.
func (*Bls12381PublicKey) ToJson
func (_self *Bls12381PublicKey) ToJson() (string, error)
Convert this type to a JSON encoded string.