fix: use private key

This commit is contained in:
Derrick Hammer 2024-01-24 11:57:48 -05:00
parent da57bc1f42
commit afa38f1424
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -695,7 +695,7 @@ func (p *P2PImpl) PrepareProvideMessage(hash *encoding.Multihash, location inter
list = append(list, 0) list = append(list, 0)
// Sign the list using the node's private key. // Sign the list using the node's private key.
signature := ed25519p.Sign(p.nodeKeyPair.PublicKeyRaw(), list) signature := ed25519p.Sign(p.nodeKeyPair.ExtractBytes(), list)
// Append the public key and signature to the list. // Append the public key and signature to the list.
finalList := append(list, p.nodeKeyPair.PublicKey()...) finalList := append(list, p.nodeKeyPair.PublicKey()...)