Versions in this module Expand all Collapse all v2 v2.2.0 Apr 9, 2024 v2.1.4 Dec 14, 2023 v2.1.3 Jul 26, 2023 v2.1.2 Jul 11, 2023 v2.1.1 Jun 22, 2023 v2.1.0 Jun 2, 2023 Changes in this version + const V1IdentityPublicKeyPrefix + const V2IdentityPublicKeyPrefix + type JSONWebKey struct + Crv string + D string + Kty string + X string + Y string + func Ed25519(random io.Reader) (*JSONWebKey, string, error) + func Legacy(random io.Reader) (*JSONWebKey, string, error) + func P384(random io.Reader) (*JSONWebKey, string, error) + func (k *JSONWebKey) RecoveryKey() (string, error) + func (k *JSONWebKey) Sign(message []byte) (string, error) + type Key struct + func FromString(input string) (*Key, error) + func (k *Key) SealingKey() string + func (k *Key) String() string + func (k *Key) Verify(message, signature []byte) bool