Detalhes do pacote

@ucanto/principal

storacha16.9k(Apache-2.0 AND MIT)9.0.3

ucanto principal

UCAN, ed25519, did, issuer

readme (leia-me)

@ucanto/principal

@ucanto/principal provides identity management and cryptographic utilities for UCAN-based authentication and authorization. It enables secure key generation, signing, and verification of UCANs.

What It Provides

  • Key Management: Supports cryptographic key generation and handling.
  • UCAN Signing & Verification: Ensures authenticity and integrity of UCAN tokens.
  • Identity Handling: Manages decentralized identifiers (DIDs) for secure communication.

How It Fits with Other Modules

For an overview and detailed usage information, refer to the main ucanto README.

Installation

npm install @ucanto/principal

Example Usage

import { ed25519 } from '@ucanto/principal';

const keypair = ed25519.generate();
const signature = keypair.sign(new Uint8Array([1, 2, 3]));
const isValid = keypair.verify(new Uint8Array([1, 2, 3]), signature);

For more details, see the ucanto documentation.

changelog (log de mudanças)

Changelog

0.1.0-beta (2022-05-03)

Features

  • improve http transport configuration (#10) (c99be08)

0.0.3-beta (2022-05-02)

Bug Fixes

0.0.2-beta (2022-04-24)

Bug Fixes

0.0.1-beta (2022-04-24)

Features

Bug Fixes

Miscellaneous Chores