Crate bc_components

Source
Expand description

§Introduction

A collection of useful primitives for cryptography, semantic graphs, and cryptocurrency, primarily for use in higher-level Blockchain Commons projects like Gordian Envelope. All the types are CBOR serializable, and a number of them can also be serialized to and from URs.

Also includes a library of CBOR tags and UR types for use with these types.

§Getting Started

[dependencies]
bc-components = "0.14.0"

Re-exports§

Modules§

Structs§

Enums§

Constants§

Traits§

  • A type that can provide a single unique digest that characterizes its contents.
  • A type that represents an elliptic curve digital signature algorithm (ECDSA) key, and can be used to derive a public key.
  • A type that represents an elliptic curve digital signature algorithm (ECDSA) key.
  • A type that can provide a single unique elliptic curve digital signature algorithm (ECDSA) uncompressed public key.
  • Types can implement to PrivateKeyDataProvider to indicate that they will provide unique data from which keys for signing and encryption can be derived.

Functions§

  • Combines the given SSKR shares into a Secret.
  • Generates SSKR shares for the given Spec and Secret.
  • Generates SSKR shares for the given Spec and Secret using the provided random number generator.