Nip19 class abstract

The abstract class Nip19 is the public API for encoding and decoding NIP-19 codes.

Constructors

Nip19()
Creates a Nip19Impl instance.
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

decode(String nip19) Map<String, dynamic>
Decodes a given NIP-19 code into a Map of type and data.
naddrEncode(AddressPointer addr) String
Encodes a given AddressPointer object into a NIP-19 'naddr' string.
neventEncode(EventPointer event) String
Encodes a given EventPointer object into a NIP-19 'nevent' string.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
noteEncode(String hex) String
Encodes a given hexadecimal string into a NIP-19 'note' string.
nprofileEncode(ProfilePointer profile) String
Encodes a given ProfilePointer object into a NIP-19 'nprofile' string.
npubEncode(String hex) String
Encodes a given hexadecimal string into a NIP-19 'npub' string.
nsecEncode(String hex) String
Encodes a given hexadecimal string into a NIP-19 'nsec' string.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited