ClpISecP256K1Custom.pas 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. { *********************************************************************************** }
  2. { * CryptoLib Library * }
  3. { * Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe * }
  4. { * Github Repository <https://github.com/Xor-el> * }
  5. { * Distributed under the MIT software license, see the accompanying file LICENSE * }
  6. { * or visit http://www.opensource.org/licenses/mit-license.php. * }
  7. { * Acknowledgements: * }
  8. { * * }
  9. { * Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring * }
  10. { * development of this library * }
  11. { * ******************************************************************************* * }
  12. (* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& *)
  13. unit ClpISecP256K1Custom;
  14. {$I ..\Include\CryptoLib.inc}
  15. interface
  16. uses
  17. ClpBigInteger,
  18. ClpIECC,
  19. ClpCryptoLibTypes;
  20. type
  21. ISecP256K1FieldElement = Interface(IAbstractFpFieldElement)
  22. ['{F283DDDA-CB65-45E0-9239-2A202F2F1462}']
  23. function GetX: TCryptoLibUInt32Array;
  24. property X: TCryptoLibUInt32Array read GetX;
  25. end;
  26. type
  27. ISecP256K1Point = Interface(IAbstractFpPoint)
  28. ['{E3B94BCB-F6A0-4140-A04E-7C26B1D81B7F}']
  29. end;
  30. type
  31. ISecP256K1Curve = Interface(IAbstractFpCurve)
  32. ['{BBE4D704-8562-4C17-9149-CA33CFE7611F}']
  33. function GetQ: TBigInteger;
  34. property Q: TBigInteger read GetQ;
  35. end;
  36. type
  37. ISecP256K1LookupTable = Interface(IAbstractECLookupTable)
  38. ['{0E204483-F303-49FD-AF66-0F30CF855CA9}']
  39. end;
  40. implementation
  41. end.