ServiceUOS class
Steps to complete offline-signature as a cold-wallet:
- parseQrCode: parse raw data of QR code, and get signer address from it.
- signAsync: sign the extrinsic with password, get signature.
- addSignatureAndSend: send tx with address of step1 & signature of step2.
Support offline-signature as a hot-wallet: makeQrCode
Constructors
- ServiceUOS(SubstrateService serviceRoot)
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serviceRoot → SubstrateService
-
final
Methods
-
addSignatureAndSend(
String address, dynamic signed, dynamic onStatusChange(String)) → Future< Map?> -
makeQrCode(
Map txInfo, List params, {String? rawParam, int? ss58}) → Future< Map?> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parseQrCode(
List keyPairs, String data) → Future< String> - parse data of QR code. @return: signer pubKey String
-
signAsync(
String chain, dynamic password) → Future< String?> - this function must be called after parseQrCode. @return: signature String
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited