Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/canopy-network/canopy
/ Sign
Method
Sign
lib/crypto/key.go:31–31 ·
view source on GitHub ↗
(msg []byte)
Source
from the content-addressed store, hash-verified
29
type
PrivateKeyI
interface
{
30
Bytes() []byte
31
Sign(msg []byte) []byte
32
PublicKey() PublicKeyI
33
// String() returns the hex string representation
34
String() string
Callers
12
Sign
Method · 0.65
TestEthSECP256K1SignAndVerify
Function · 0.65
BigPow
Method · 0.65
Reduced
Method · 0.65
encodeBigInt
Function · 0.65
floorDivision
Function · 0.65
safeGCD
Function · 0.65
Sign
Method · 0.65
TestED25519SignAndVerify
Function · 0.65
TestKeyBatchFuzz
Function · 0.65
TestBenchmarkBatch
Function · 0.65
Sign
Method · 0.65
Implementers
3
SECP256K1PrivateKey
lib/crypto/secp256k1.go
ED25519PrivateKey
lib/crypto/ed25519.go
BLS12381PrivateKey
lib/crypto/bls.go
Calls
no outgoing calls
Tested by
4
TestEthSECP256K1SignAndVerify
Function · 0.52
TestED25519SignAndVerify
Function · 0.52
TestKeyBatchFuzz
Function · 0.52
TestBenchmarkBatch
Function · 0.52