Add support for encrypting spending keys

This commit is contained in:
Jack Grigg
2016-08-10 17:47:13 +12:00
parent 80259d4b4f
commit 16d140f4a2
6 changed files with 203 additions and 2 deletions

View File

@@ -1,9 +1,17 @@
#include "Address.hpp"
#include "NoteEncryption.hpp"
#include "hash.h"
#include "prf.h"
#include "streams.h"
namespace libzcash {
uint256 PaymentAddress::GetHash() const {
CDataStream ss(SER_NETWORK, PROTOCOL_VERSION);
ss << *this;
return Hash(ss.begin(), ss.end());
}
uint256 ViewingKey::pk_enc() {
return ZCNoteEncryption::generate_pubkey(*this);
}