Private Decentralized Communication Network
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

29 lines
721 B

  1. using System;
  2. using System.Text;
  3. using System.IO;
  4. using System.Collections.Generic;
  5. using onionrpow;
  6. namespace onionrpow_cli
  7. {
  8. class Program
  9. {
  10. static void Main(string[] args)
  11. {
  12. using (Stream stdin = Console.OpenStandardInput())
  13. {
  14. var data = new List<byte>();
  15. byte[] buffer = new byte[60000];
  16. int bytes;
  17. while ((bytes = stdin.Read(buffer, 0, buffer.Length)) > 0) {
  18. //stdout.Write(buffer, 0, bytes);
  19. data.AddRange(buffer);
  20. }
  21. onionrpow.OnionrPow.compute(data.ToArray(), 3);
  22. }
  23. }
  24. }
  25. }