//public static readonly ConcurrentDictionary<int, List<LowerLevelBlock>> s_Blocks; //public static readonly Queue<PaymentTransaction> s_PaymentPool; //public static int epoch; //public static int version; public IssuerService() { int Id = 1010; string Name = "菲特银行北海分行"; string PublicKey = "RUNTMSAAAAB9kGHlnnUY0FGYBCzd7WdcZifnx+wfPVswjSrxYqAw7sC92RYMLB2iJA9f7utNbhX7WGUgzWwKd+Y4wscGA98G"; string PrivateKey = "RUNTMiAAAAB9kGHlnnUY0FGYBCzd7WdcZifnx+wfPVswjSrxYqAw7sC92RYMLB2iJA9f7utNbhX7WGUgzWwKd+Y4wscGA98G65oCkARn28CZeMfTC9i84DMlfc7vwSABoRVRmWlaLR4="; string SignatureToCertifyIssuer = ""; issuer1 = new Issuer(Id, Name, PublicKey, PrivateKey, SignatureToCertifyIssuer); Id = 1942; Name = "菲特银行南海分行"; PublicKey = "RUNTMSAAAADn7HBQqfSnjcD2R3UFKyirGIAqk65+NPWMIlX3Ilp95HpZLWt9DqSYowSbCQ1wUienJ9wQ2GEoYKWOEwMF9jl6"; PrivateKey = "RUNTMiAAAADn7HBQqfSnjcD2R3UFKyirGIAqk65+NPWMIlX3Ilp95HpZLWt9DqSYowSbCQ1wUienJ9wQ2GEoYKWOEwMF9jl6bLAWC+sFREWvj1rfY97K49tosn9eg5CQ9Q3e1i59zgQ="; SignatureToCertifyIssuer = ""; issuer2 = new Issuer(Id, Name, PublicKey, PrivateKey, SignatureToCertifyIssuer); }
static BankController() { s_Bank = new Bank { PublicKey = "RUNTMSAAAADcmtiQ8GgWydlQseioV45M+ZfjicIF82yCJrjr4bqJEIsaYeMEw7cH8uArUuE9W9cx8pskNIP6AZB23DunLsHs", PrivateKey = "RUNTMiAAAADcmtiQ8GgWydlQseioV45M+ZfjicIF82yCJrjr4bqJEIsaYeMEw7cH8uArUuE9W9cx8pskNIP6AZB23DunLsHsYivlMzw31CW+v2G9TKcuNtHp14Y9GRPaRhiJN/eUQcM=" }; CertifiedIssuers = new List<Issuer>(); var issuer1 = new Issuer { Id = 1010, Name = "Microsoft", PublicKey = "RUNTMSAAAAB9kGHlnnUY0FGYBCzd7WdcZifnx+wfPVswjSrxYqAw7sC92RYMLB2iJA9f7utNbhX7WGUgzWwKd+Y4wscGA98G", PrivateKey = "RUNTMiAAAAB9kGHlnnUY0FGYBCzd7WdcZifnx+wfPVswjSrxYqAw7sC92RYMLB2iJA9f7utNbhX7WGUgzWwKd+Y4wscGA98G65oCkARn28CZeMfTC9i84DMlfc7vwSABoRVRmWlaLR4=", SignatureToCertifyIssuer = "", PaymentAccounts = new List<PaymentAccount>() }; issuer1.SignatureToCertifyIssuer = CryptoHelper.Sign(s_Bank.PrivateKey, issuer1.PublicKey); CertifiedIssuers.Add(issuer1); var issuer2 = new Issuer { Id = 1942, Name = "Bank of America", PublicKey = "RUNTMSAAAADn7HBQqfSnjcD2R3UFKyirGIAqk65+NPWMIlX3Ilp95HpZLWt9DqSYowSbCQ1wUienJ9wQ2GEoYKWOEwMF9jl6", PrivateKey = "RUNTMiAAAADn7HBQqfSnjcD2R3UFKyirGIAqk65+NPWMIlX3Ilp95HpZLWt9DqSYowSbCQ1wUienJ9wQ2GEoYKWOEwMF9jl6bLAWC+sFREWvj1rfY97K49tosn9eg5CQ9Q3e1i59zgQ=", SignatureToCertifyIssuer = "", PaymentAccounts = new List<PaymentAccount>() }; issuer2.SignatureToCertifyIssuer = CryptoHelper.Sign(s_Bank.PrivateKey, issuer2.PublicKey); CertifiedIssuers.Add(issuer2); s_Blocks = new List<HigherLevelBlock>(); s_Hashes = new List<Tuple<long, string>>(); s_Period = 0; }