|
@ -49,11 +49,11 @@ h256 RLPXDatagramFace::sign(Secret const& _k) |
|
|
dev::sha3(signedRLPx).ref().copyTo(rlpxHash); |
|
|
dev::sha3(signedRLPx).ref().copyTo(rlpxHash); |
|
|
|
|
|
|
|
|
return std::move(sighash); |
|
|
return std::move(sighash); |
|
|
}; |
|
|
} |
|
|
|
|
|
|
|
|
Public RLPXDatagramFace::authenticate(bytesConstRef _sig, bytesConstRef _rlp) |
|
|
Public RLPXDatagramFace::authenticate(bytesConstRef _sig, bytesConstRef _rlp) |
|
|
{ |
|
|
{ |
|
|
Signature const& sig = *(Signature const*)_sig.data(); |
|
|
Signature const& sig = *(Signature const*)_sig.data(); |
|
|
return std::move(dev::recover(sig, sha3(_rlp))); |
|
|
return std::move(dev::recover(sig, sha3(_rlp))); |
|
|
}; |
|
|
} |
|
|
|
|
|
|
|
|