getKeysFromString()
Get private key, public key and wallet address form a seed phrase written on a single Map object
Method signature
Map<String, String> getKeysFromString(String seedPhrase);
Parameters
Name
Type
Description
seedPhrase
String
The seedphrase that you want to use for generating the keys
Example
import 'package:circular_api/circular_api.dart';
void main() {
final circular = CircularAPI();
final seedPhrase = "Hello, World!";
final keys = circular.getKeysFromString(seedPhrase);
}
Result
The result will be a Map with these keys:
{
"privateKey" : String,
"publicKey" : String,
"address" : String,
"seedPhrase" : String,
}
Last updated