Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gooddollar/ceramic-seed-sdk

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gooddollar/ceramic-seed-sdk

Manage a privatekey or seed by multiple Ids

  • 1.0.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

CeramicSeedSDK

Manage a privatekey or seed by multiple Ids

Getting Started

Install Ceramic-seed-sdk into your project

yarn add @gooddollar/ceramic-seed-sdk

Usage

import { CeramicSDK } from '@gooddollar/ceramic-seed-sdk'
  • Create a new instance of the sdk:

const sdk = new CeramicSDK("https://ceramic-clay.3boxlabs.com");

  • Initialize a DID based on private key and create a new one if none exists:
    const sdkClient = new CeramicSDK(NODE_URL_3BOXLABS);
    const myPrvkey = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"; // Length need to be 32
    const res = await sdkClient.initialize(myPrvkey, "pubkeyToUseAsAuthId");
  • Add the given private key as another authSecret that can access the DID seed:
    const res = await sdkClient.addAuthenticator(myNewPrvkey, derivedPubkey2);
  • Remove the provided authenticator:
    const removed = await sdkClient.removeAuthenticator(pubkey);
  • Retrieves the unencrypted master seed:
    const ms = await sdkClient.getMasterSeed();

FAQs

Package last updated on 20 Jan 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc