fabric: github.com/hyperledger/fabric/common/tools/cryptogen/csp Index | Files

package csp

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

Copyright IBM Corp. All Rights Reserved.

SPDX-License-Identifier: Apache-2.0


Package Files


func GeneratePrivateKey Uses

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

GeneratePrivateKey creates a private key and stores it in keystorePath

func GetECPublicKey Uses

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

func LoadPrivateKey Uses

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

LoadPrivateKey loads a private key from file in keystorePath

Package csp imports 12 packages (graph) and is imported by 3 packages. Updated 2018-12-12. Refresh now. Tools for package owners.