Skip to main content

Module nhash

Module nhash 

Source
Expand description

Bech32-encoded identifiers for hashtree content

Similar to nostr’s nip19 (npub, nprofile, nevent, naddr), provides human-readable, copy-pasteable identifiers.

Types:

  • nhash: Permalink (hash + optional decrypt key)

Structs§

NHashData
NHash data - permalink to content by hash

Enums§

DecodeResult
Decode result
NHashError
Errors for nhash encoding/decoding

Functions§

decode
Decode an nhash string, returning a tagged decode result.
is_nhash
Check if a string is an nhash
nhash_decode
Decode an nhash string
nhash_encode
Encode an nhash permalink from just a hash
nhash_encode_full
Encode an nhash permalink with optional decrypt key