ecdsa

package
v2.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2021 License: MIT Imports: 3 Imported by: 1

Documentation

Overview

Package ecdsa loads an ECDSA P-256 private key (*crypto/ecdsa.PrivateKey) from string representations of its key parameters. See https://spec.smarthealth.cards/#generating-and-resolving-cryptographic-keys.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadKey

func LoadKey(d, x, y string) (*ecdsa.PrivateKey, error)

LoadKey takes string representations of the d, x, and y paramters of an ECDSA key, and loads them as *math/big.Int objects using the (*math/big.Int).UnmarshalText method. Then it return an ECDSA private key of type *crypto/ecdsa.PrivateKey.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL