XRPLF / xrpl-py

A Python library to interact with the XRP Ledger (XRPL) blockchain
ISC License
148 stars 84 forks source link

Implement PREIMAGE-SHA-256 crypto-conditions #186

Open mDuo13 opened 3 years ago

mDuo13 commented 3 years ago

Conditional escrows use the PREIMAGE-SHA-256 crypto-condition format to define the binary format for conditions and fulfillments. It would be great to have quick access to native code that can secure create a fulfillment and derive the condition for use in EscrowCreate and EscrowFinish transactions.

JST5000 commented 1 year ago

These snippets for Escrows & generating crypto conditions will probably be relevant: https://github.com/XRPLF/xrpl-dev-portal/tree/master/content/_code-samples/escrow/py

JST5000 commented 1 year ago

@mDuo13 Would it make sense to include this sample on the Escrow page on xrpl.org in order to show people how to do that using external libraries instead of adding another import to xrpl.js & such? - https://github.com/XRPLF/xrpl-dev-portal/blob/master/content/_code-samples/escrow/py/generate_condition.py