RemoteKeyApi class
RemoteKey management for 2FA recovery keys.
Supports both phone numbers (SMS verification) and email addresses
(email verification). The Crypto/WalletSign backend routes based on
whether the identifier contains an @.
Constructors
- RemoteKeyApi(Transport _conn)
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
-
create(
{String? number, String? email}) → Future< RemoteKeySession> - Start a new remote key setup. Returns a session descriptor.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
- Start a key reshare for an existing remote key. Returns a session descriptor (SMS/email code sent to the user); complete the reshare by calling validate with the code the user entered.
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
{required String session, required String code}) → Future< RemoteKeyValidation> - Validate an SMS or email verification code to complete remote key setup or reshare. Returns the newly-created (or resharded) remote key identifier.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited