﻿using System;

namespace BitCommitment
{
    /// <summary>
    /// A class to perform bit commitment. It does not care what the input is; it's just a 
    /// facility for exchanging bit commitment messages.
    /// </summary>
    public class BitCommitmentEngine
    {
        #region properties

        public byte[] BobRandBytesR { get; set; }
        public byte[] AliceEncryptedMessage { get; set; }

        #endregion
    }
}

﻿using System;

namespace BitCommitment
{
    /// <summary>
    /// A class to perform bit commitment. It does not care what the input is; it's just a 
    /// facility for exchanging bit commitment messages. Based on Bruce Schneier's one-way 
    /// function method for committing bits
    /// </summary>
    public class BitCommitmentEngine
    {
        public byte[] AliceRandBytes1 { get; set; }
        public byte[] AliceRandBytes2 { get; set; }
        public byte[] AliceMessageBytesBytes { get; set; }

        public BitCommitmentEngine(byte[] one, byte[] two, byte[] messageBytes)
        {
            AliceRandBytes1 = one;
            AliceRandBytes2 = two;
            AliceMessageBytesBytes = messageBytes;
        }


    }
}

Use one way function protocol for bit commitment
Use one way function protocol for bit commitment
