Documentation ¶
Index ¶
- Constants
- func DeserializeTwoBigInt(data []byte) (*big.Int, *big.Int, error)
- func MustConvertPrivateKeyToEcdsa(privateKey crypto.PrivateKey) *ecdsa.PrivateKey
- func MustConvertPublicKeyToEcdsa(publicKey crypto.PublicKey) *ecdsa.PublicKey
- func SerializeTwoBigInt(one, two *big.Int) []byte
- type AlgorithmProvider
Constants ¶
View Source
const (
TwoBigIntBytesLength = (expectedBigIntBytesLength * 2) + sizeBytesLength
)
Variables ¶
This section is empty.
Functions ¶
func DeserializeTwoBigInt ¶ added in v0.7.5
func MustConvertPrivateKeyToEcdsa ¶
func MustConvertPrivateKeyToEcdsa(privateKey crypto.PrivateKey) *ecdsa.PrivateKey
func SerializeTwoBigInt ¶ added in v0.7.5
Types ¶
type AlgorithmProvider ¶
type AlgorithmProvider interface { Sign(crypto.PrivateKey) core.Signer Verify(crypto.PublicKey) core.Verifier }
func NewECDSAProvider ¶
func NewECDSAProvider() AlgorithmProvider
Click to show internal directories.
Click to hide internal directories.