Work toward authorized keys.

This commit is contained in:
Arthur Britto
2012-05-10 15:51:19 -07:00
parent 9a7e7b961c
commit 26fd9f3e43
4 changed files with 18 additions and 16 deletions

View File

@@ -21,7 +21,9 @@ public:
private:
NewcoinAddress mAccountID;
NewcoinAddress mAuthorizedKey;
SerializedLedgerEntry::pointer mLedgerEntry;
bool mValid;
public:

View File

@@ -16,7 +16,6 @@
#include "BitcoinUtil.h"
#include "SHAMap.h"
enum LedgerStateParms
{
lepNONE = 0, // no special flags
@@ -38,7 +37,6 @@ class Ledger : public boost::enable_shared_from_this<Ledger>
public:
typedef boost::shared_ptr<Ledger> pointer;
enum TransResult
{
TR_ERROR = -1,

View File

@@ -8,6 +8,7 @@ LedgerEntryFormat LedgerFormats[]=
{ "AccountRoot", ltACCOUNT_ROOT, {
{ S_FIELD(Flags), STI_UINT32, SOE_FLAGS, 0 },
{ S_FIELD(Account), STI_ACCOUNT, SOE_REQUIRED, 0 },
{ S_FIELD(AuthorizedKey),STI_VL, SOE_REQUIRED, 0 },
{ S_FIELD(Sequence), STI_UINT32, SOE_REQUIRED, 0 },
{ S_FIELD(Balance), STI_UINT64, SOE_REQUIRED, 0 },
{ S_FIELD(LastReceive), STI_UINT32, SOE_REQUIRED, 0 },

View File

@@ -32,6 +32,7 @@ enum SOE_Field
sfBorrower, sfLender, sfLimit, sfOfferCurrency, sfLedgerHash,
sfLastReceive, sfLastTxn, sfNextRate, sfNextRateLgr, sfNextRateExp,
sfNickname, sfMinimumOffer,
sfAuthorizedKey,
// test fields
sfTest1, sfTest2, sfTest3, sfTest4