DVSiweMessage class

A parsed EIP-4361 sign-in message.

Constructors

DVSiweMessage({required String domain, required String address, required String uri, required String version, required int chainId, required String nonce, required DateTime issuedAt, String? statement, DateTime? expirationTime, DateTime? notBefore})
const

Properties

address → String
final
chainId → int
final
domain → String
final
expirationTime → DateTime?
final
hashCode → int
The hash code for this object.
no setterinherited
issuedAt → DateTime
final
nonce → String
final
notBefore → DateTime?
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
statement → String?
final
uri → String
final
version → String
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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

Static Methods

parse(String message) → DVSiweMessage?
Parses the EIP-4361 text a wallet was asked to sign. Null when it is not a well-formed message: a verifier must not guess at fields it cannot find, because a missing nonce reads as "no replay protection required".