Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/capi/mod.ts>Sr25519

[WIP] A framework for crafting interactions with Substrate chains
Latest
class Sr25519
Re-export
import { Sr25519 } from "https://deno.land/x/capi@v0.1.1-beta.1/mod.ts";

For the time being, this should only be used for testing

Constructors

new
Sr25519(keypair: { publicKey: Uint8Array; secretKey: Uint8Array; })

Properties

address
keypair: WatTheSr25519
readonly
publicKey
readonly
secretKey
sign: (msg: Uint8Array) => unknown

Static Methods

fromSecret(secret: Uint8Array)
fromSeed64(seed: Uint8Array)