Skip to main content

PasskeyPublicKey

type PasskeyPublicKey​

Public key of a `PasskeyAuthenticator`.

This is used to derive the onchain `Address` for a `PasskeyAuthenticator`.

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 PasskeyPublicKey struct {
// contains filtered or unexported fields
}

func LiftFromExternalPasskeyPublicKey​

func LiftFromExternalPasskeyPublicKey(handle uint64) *PasskeyPublicKey

func NewPasskeyPublicKey​

func NewPasskeyPublicKey(publicKey *Secp256r1PublicKey) *PasskeyPublicKey

func (*PasskeyPublicKey) DebugString​

func (_self *PasskeyPublicKey) DebugString() string

func (*PasskeyPublicKey) DeriveAddress​

func (_self *PasskeyPublicKey) DeriveAddress() *Address

Derive an `Address` from this Passkey Public Key

An `Address` can be derived from a `PasskeyPublicKey` by hashing the bytes of the `Secp256r1PublicKey` that corresponds to this passkey prefixed with the Passkey `SignatureScheme` flag (`0x06`).

`hash( 0x06 || 33-byte secp256r1 public key)`

func (*PasskeyPublicKey) Destroy​

func (object *PasskeyPublicKey) Destroy()

func (*PasskeyPublicKey) Eq​

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

func (*PasskeyPublicKey) Inner​

func (_self *PasskeyPublicKey) Inner() *Secp256r1PublicKey

func (*PasskeyPublicKey) Ne​

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

func (*PasskeyPublicKey) ToDisplayString​

func (_self *PasskeyPublicKey) 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.