Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

enckeys_v1 source realm

Package enckeys\_v1 is an ownerless public encryption-key directory. Keys are announcements by accounts, not attestat...

Overview

Package enckeys_v1 is an ownerless public encryption-key directory. Keys are announcements by accounts, not attestations of identity, custody, recovery strength or successful decryption. There is no fee, admin or pause.

Constants 2

Functions 5

func GetKey

Action
1func GetKey(addr address, suite string) (publicKey []byte, generation uint64, active bool)
source

GetKey returns a defensive copy; generation is still returned after revoke.

func KeyJSON

Action
1func KeyJSON(addr address, suite string) string
source

KeyJSON serializes all chain integers as decimal strings. op_id and height identify the last successful mutation for recovery from an unknown outcome.

func RegisterKey

crossing Action
1func RegisterKey(cur realm, suite string, expectedGeneration uint64, publicKey []byte, opID [16]byte) uint64
source

RegisterKey replaces the caller's announcement using an optimistic lock. expectedGeneration is zero only for first registration. A revoked generation is retained forever; re-registering cannot reuse an old identity generation.

func RevokeKey

crossing Action
1func RevokeKey(cur realm, suite string, expectedGeneration uint64, opID [16]byte) uint64
source

RevokeKey removes the active key but retains the generation and receipt. Historical announcements and wraps remain public chain history.

Imports 8

  • chain stdlib
  • chain/runtime stdlib
  • chain/runtime/unsafe stdlib
  • crypto/bech32 stdlib
  • encoding/base64 stdlib
  • encoding/hex stdlib
  • gno.land/p/samcrew/avl package
  • strconv stdlib

Source Files 3