Sha256: e586f0fd694ea03ab0bacc97fbe61fc4cf720643fbe03b0ee763eaf8fea52851

Contents?: true

Size: 966 Bytes

Versions: 12

Compression:

Stored size: 966 Bytes

Contents

namespace stellar
{

typedef opaque Signature[64];
typedef opaque Hash[32];
typedef opaque uint256[32];
typedef unsigned int uint32;
typedef unsigned hyper uint64;
typedef opaque Value<>;
typedef opaque Evidence<>;

struct SCPBallot
{
    uint32 counter; // n
    Value value;    // x
};

enum SCPStatementType
{
    PREPARING = 0,
    PREPARED = 1,
    COMMITTING = 2,
    COMMITTED = 3
};

struct SCPStatement
{
    uint64 slotIndex;   // i
    SCPBallot ballot;   // b
    Hash quorumSetHash; // D

    union switch (SCPStatementType type)
    {
    case PREPARING:
        struct
        {
            SCPBallot excepted<>; // B_c
            SCPBallot* prepared;  // p
        } prepare;
    case PREPARED:
    case COMMITTING:
    case COMMITTED:
        void;
    }
    pledges;
};

struct SCPEnvelope
{
    uint256 nodeID; // v
    SCPStatement statement;
    Signature signature;
};

struct SCPQuorumSet
{
    uint32 threshold;
    Hash validators<>;
};
}

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
stellar-base-0.0.12 xdr/SCPXDR.x
stellar-base-0.0.11 xdr/SCPXDR.x
stellar-base-0.0.10 xdr/SCPXDR.x
stellar-base-0.0.9 xdr/SCPXDR.x
stellar-base-0.0.8 xdr/SCPXDR.x
stellar-base-0.0.7 xdr/SCPXDR.x
stellar-base-0.0.6 xdr/SCPXDR.x
stellar-base-0.0.5 xdr/SCPXDR.x
stellar-base-0.0.4 xdr/SCPXDR.x
stellar-base-0.0.3 xdr/SCPXDR.x
stellar-base-0.0.2 xdr/SCPXDR.x
stellar-base-0.0.1 xdr/SCPXDR.x