Skip to main content

Bls12381PublicKey

type Bls12381PublicKey​

A bls12381 min-sig public key.

BCS​

The BCS serialized form for this type is defined by the following ABNF:

```text bls12381-public-key = %d96 96OCTET ```

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 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) ToBytes​

func (_self *Bls12381PublicKey) ToBytes() []byte