Documentation ¶
Index ¶
- func GetCurveHalfOrdersAt(c elliptic.Curve) *big.Int
- func IsLowS(k *ecdsa.PublicKey, s *big.Int) (bool, error)
- func NewIdentityFromBytes(raw []byte) (view.Identity, driver.Verifier, error)
- func NewIdentityFromPEMCert(raw []byte) (view.Identity, driver.Verifier, error)
- func NewSigner() (view.Identity, driver.Signer, driver.Verifier, error)
- func NewSignerFromPEM(raw []byte) (driver.Signer, error)
- func NewTwoPartyCollectEphemeralKeysView(other view.Identity) *twoPartyCollectEphemeralKeyView
- func NewTwoPartyEphemeralKeyResponderView() *twoPartyEphemeralKeyResponderView
- type Signature
- type Signer
- type Verifier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewIdentityFromBytes ¶
func NewIdentityFromPEMCert ¶
func NewTwoPartyEphemeralKeyResponderView ¶
func NewTwoPartyEphemeralKeyResponderView() *twoPartyEphemeralKeyResponderView
Types ¶
type Signer ¶
type Signer struct {
PrivateKey *ecdsa.PrivateKey
}
Signer implements the crypto.Signer interface for ECDSA keys. The Sign method ensures signatures are created with Low S values since Fabric normalizes all signatures to Low S. See https://github.com/bitcoin/bips/blob/master/bip-0146.mediawiki#low_s for more detail.
Click to show internal directories.
Click to hide internal directories.