Skip to main content

Bls12381Signature

type Bls12381Signature

A bls12381 min-sig signature.

BCS

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

```text bls12381-signature = 48OCTET ```

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

func Bls12381SignatureFromBcs

func Bls12381SignatureFromBcs(bcs []byte) (*Bls12381Signature, error)

Create this type from BCS encoded bytes.

func Bls12381SignatureFromBytes

func Bls12381SignatureFromBytes(bytes []byte) (*Bls12381Signature, error)

func Bls12381SignatureFromJson

func Bls12381SignatureFromJson(json string) (*Bls12381Signature, error)

Create this type from JSON encoded string.

func Bls12381SignatureFromStr

func Bls12381SignatureFromStr(s string) (*Bls12381Signature, error)

func Bls12381SignatureRandom

func Bls12381SignatureRandom() *Bls12381Signature

func LiftFromExternalBls12381Signature

func LiftFromExternalBls12381Signature(handle uint64) *Bls12381Signature

func (*Bls12381Signature) Destroy

func (object *Bls12381Signature) Destroy()

func (*Bls12381Signature) Eq

func (_self *Bls12381Signature) Eq(other *Bls12381Signature) bool

func (*Bls12381Signature) Hash

func (_self *Bls12381Signature) Hash() uint64

func (*Bls12381Signature) Ne

func (_self *Bls12381Signature) Ne(other *Bls12381Signature) bool

func (*Bls12381Signature) ToBytes

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