GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - dfinity/vetkeys: Libraries and examples for integrating verifiable encrypted threshold keys (vetKeys) into Internet Computer applications

BranchesTags
Open more actions menu

Latest commit

 

History

443 Commits
443 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
backend
backend
 
 
frontend/ic_vetkeys
frontend/ic_vetkeys
 
 
scripts
scripts
 
 
.gitignore
.gitignore
 
 
Cargo.lock
Cargo.lock
 
 
Cargo.toml
Cargo.toml
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
RELEASING.md
RELEASING.md
 
 
package.json
package.json
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
pnpm-workspace.yaml
pnpm-workspace.yaml
 
 
rust-toolchain.toml
rust-toolchain.toml
 
 

Repository files navigation

vetKeys

This repository contains a set of tools designed to help canister developers as well as frontend developers integrate vetKeys into their Internet Computer (ICP) applications.

vetKeys – Verifiable Encrypted Threshold Keys – on the Internet Computer addresses the fundamental challenge of storing secrets on the network by allowing cryptographic key derivation without exposing private keys to anyone but the user. By leveraging threshold cryptography, vetKeys make it possible to generate, transport, and use encrypted keys securely, unlocking privacy-preserving applications and externally verifiable randomness.

In slightly more detail, vetKeys enables use cases such as:

  • Decentralized key management, secure threshold key derivation without relying on a traditional PKI - only the user knows the key.
  • Threshold BLS Signatures, enabling secure, decentralized signing of messages.
  • Identity Based Encryption (IBE), enabling secure communication between users without exchanging public keys.
  • Verifiable Random Beacons, providing a secure source of verifiable randomness for decentralized applications.
  • Application-defined access control, the application defines who may obtain which derived keys, BLS signatures, or verifiable randomness.

The management canister API for vetKeys exposes two endpoints, one for retrieving a public key and another one for deriving encrypted keys.

vetkd_public_key : (vetkd_public_key_args) -> (vetkd_public_key_result);
vetkd_derive_key : (vetkd_derive_key_args) -> (vetkd_derive_key_result);

For more documentation on vetKeys and the management canister API, see the vetKeys documentation.

Please share your feedback on the developer forum.

Key Features

1. vetKeys Backend Library (Motoko, Rust) - Supports canister developers

Tools to help canister developers integrate vetKeys into their Internet Computer (ICP) applications.

  • KeyManager (Motoko, Rust) – a library for deriving and managing encrypted cryptographic keys.
  • EncryptedMaps (Motoko, Rust) – a library for encrypting using vetkeys, and securely storing and sharing encrypted key-value pairs.
  • Utils (Rust) – Utility functions for working with vetKeys.

2. vetKeys Frontend Library (npm) - Supports frontend developers

Tools for frontend developers to interact with VetKD enabled canisters.

  • KeyManager – Facilitates interaction with a KeyManager-enabled canister.
  • EncryptedMaps – Facilitates interaction with a EncryptedMaps-enabled canister.
  • Utils – Utility functions for working with vetKeys.

3. vetKeys Example Applications

Example applications are available in the dfinity/examples repository, most with both a Motoko and a Rust implementation:

  • Threshold BLS Signatures (Motoko, Rust) - Demonstrates how to use vetKeys to create a threshold BLS signing service.
  • Identity-Based Encryption (IBE) (Motoko, Rust) - Shows how to implement secure messaging using Identity Based Encryption using Internet Identity Principals as encryption IDs.
  • Timelock Encryption (Rust) - Implements a secret-bid auction system where bids remain encrypted until the auction is opened.
  • Password Manager (Motoko, Rust) - A secure, decentralized password manager using Encrypted Maps for vault-based password storage and sharing.
  • Password Manager with Metadata (Motoko, Rust) - Extends the basic password manager to support unencrypted metadata alongside encrypted passwords.
  • Encrypted Notes (Motoko, Rust) - A secure note-taking application that uses vetKeys for encryption and enables sharing notes between users without device management.

About

Libraries and examples for integrating verifiable encrypted threshold keys (vetKeys) into Internet Computer applications

docs.internetcomputer.org/concepts/vetkeys

Topics

blockchainblsdistributed-key-management-serviceencrypted-onchain-storageencryptionibeicpidentity-based-encryptioninternet-computerrandom-beaconrandomnessthreshold-cryptographythreshold-decryptiontimelock-encryptionverifiable-random-functionvetkeysvrf

Resources

Readme
Apache-2.0 license
Activity
Custom properties

Stars

21 stars

Watchers

13 watching

Forks

7 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.