...

Package csp

import "github.com/hyperledger/fabric/common/tools/cryptogen/csp"
Overview
Index

Overview ▾

Copyright IBM Corp. All Rights Reserved.

SPDX-License-Identifier: Apache-2.0

func GeneratePrivateKey

func GeneratePrivateKey(keystorePath string) (bccsp.Key,
    crypto.Signer, error)

GeneratePrivateKey creates a private key and stores it in keystorePath

func GetECPublicKey

func GetECPublicKey(priv bccsp.Key) (*ecdsa.PublicKey, error)

func LoadPrivateKey

func LoadPrivateKey(keystorePath string) (bccsp.Key, crypto.Signer, error)

LoadPrivateKey loads a private key from file in keystorePath