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

x/earthstar/src/entries/npm.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.2.0/src/entries/npm.ts";

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

Parameters

pair: AuthorKeypair | ShareKeypair

Returns

KeypairBytes | ValidationError