Secp256r1PublicKey
type Secp256r1PublicKey
A secp256r1 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\).
type Secp256r1PublicKey struct {
// contains filtered or unexported fields
}
func LiftFromExternalSecp256r1PublicKey
func LiftFromExternalSecp256r1PublicKey(handle uint64) *Secp256r1PublicKey
func Secp256r1PublicKeyFromBcs
func Secp256r1PublicKeyFromBcs(bcs []byte) (*Secp256r1PublicKey, error)
Create this type from BCS encoded bytes.
func Secp256r1PublicKeyFromBytes
func Secp256r1PublicKeyFromBytes(bytes []byte) (*Secp256r1PublicKey, error)
func Secp256r1PublicKeyFromJson
func Secp256r1PublicKeyFromJson(json string) (*Secp256r1PublicKey, error)
Create this type from a JSON encoded string.
func Secp256r1PublicKeyFromStr
func Secp256r1PublicKeyFromStr(s string) (*Secp256r1PublicKey, error)
func Secp256r1PublicKeyRandom
func Secp256r1PublicKeyRandom() *Secp256r1PublicKey
func (*Secp256r1PublicKey) DeriveAddress
func (_self *Secp256r1PublicKey) DeriveAddress() *Address
Derive an `Address` from this Public Key
An `Address` can be derived from a `Secp256r1PublicKey` by hashing the bytes of the public key prefixed with the Secp256r1 `SignatureScheme` flag (`0x02`).
`hash( 0x02 || 33-byte secp256r1 public key)`
func (*Secp256r1PublicKey) Destroy
func (object *Secp256r1PublicKey) Destroy()
func (*Secp256r1PublicKey) Eq
func (_self *Secp256r1PublicKey) Eq(other *Secp256r1PublicKey) bool
func (*Secp256r1PublicKey) Hash
func (_self *Secp256r1PublicKey) Hash() uint64
func (*Secp256r1PublicKey) Ne
func (_self *Secp256r1PublicKey) Ne(other *Secp256r1PublicKey) bool
func (*Secp256r1PublicKey) Scheme
func (_self *Secp256r1PublicKey) Scheme() SignatureScheme
Returns the signature scheme for this public key.
func (*Secp256r1PublicKey) ToBcs
func (_self *Secp256r1PublicKey) ToBcs() ([]byte, error)
Convert this type to BCS encoded bytes.
func (*Secp256r1PublicKey) ToBytes
func (_self *Secp256r1PublicKey) ToBytes() []byte
func (*Secp256r1PublicKey) ToDisplayString
func (_self *Secp256r1PublicKey) 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 (*Secp256r1PublicKey) ToFlaggedBytes
func (_self *Secp256r1PublicKey) ToFlaggedBytes() []byte
Returns the bytes with signature scheme flag prepended
func (*Secp256r1PublicKey) ToJson
func (_self *Secp256r1PublicKey) ToJson() (string, error)
Convert this type to a JSON encoded string.