Skip to main content
Module

x/earthstar/mod.browser.ts>decodeKeypairToBytes

Storage for private, distributed, offline-first applications.
Go to Latest
function decodeKeypairToBytes
Re-export
import { decodeKeypairToBytes } from "https://deno.land/x/earthstar@v10.0.2/mod.browser.ts";

Convert a keypair (author / share) back into a raw KeypairBytes for use in crypto operations.

Parameters

pair: AuthorKeypair | ShareKeypair

Returns

KeypairBytes | ValidationError