Keyring Signer
Signing and Verifying
final keyring = Keyring();
final keyPair2 = KeyPair.sr25519.fromSeed(Uint8List.fromList(hex.decode(
'9d61b19deffd5a60ba844af492ec2cc44449c5697b326919703bac031cae7f60'));
keyring.add(keyPair2);
final kp = keyring.getByPublicKey(keyPair2.publicKey.bytes);
final signature = kp.sign(message);
final isVerified = kp.verify(message, signature);
Keypair
SS58 Address Format
The SS58 address format is the standard for encoding and decoding addresses in the Polkadot ecosystem. It is based on the Bitcoin Base-58-check encoding, with a few modifications designed for the needs of Polkadot-based chains. With this format it is possible to identity to which network a given address belongs, and to encode and decode addresses for different networks.