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 for this type is defined by the following ABNF:

```text passkey-public-key = passkey-flag secp256r1-public-key ```

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