-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for Hash(ed) Time Lock(ed) Contracts (HTLC) #11
Add support for Hash(ed) Time Lock(ed) Contracts (HTLC) #11
Conversation
edf4ae5
to
9d302f3
Compare
97eb79d
to
18204e5
Compare
Awaiting SporkId to update and then merge |
Marked as WIP to remove rpc list methods and possibly to add allowing other users to unlock and you receive funds |
ready |
Hello, My apologies for the lateresponse.
What were you referring to? What are youready for? What do I need to do ?
Again I apologize, I am new to everything .
Oh NO !!
Saturday night I transferred a lot of ZNN to my newly acquiredSYRIUS ZNN wallet. It showed up inmy wallet so I was done, satisfied, happy I had accomplished it.
But now my wallet shows a zero balance. Please don’t tell me I messed up, and lost it.
If you don’t mind, please, explain what you were referringto in your email. And what it is that you do so that I can learn andunderstand the processes.
And if you can help me, or advise me about my ZNN wallet,that would be GREATLY appreciated.
(i understand it may not be your job whatsoever, sosincerely, THANK YOU )
THANK YOU
Clint Walkup
On Sunday, February 19, 2023 at 06:40:42 PM EST, georgezgeorgez ***@***.***> wrote:
ready
just writing a ZIP now
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
"Ready" was referring to the Pull Request for the HTLC code. You received an email because you are subscribed to updates for it. If you are having trouble with Syrius, I suggest you reach out to the community in Telegram or Discord, as that is unrelated to this PR. |
Per CryptoFish suggestion, changed the rpc names to be consistent/shorter |
fixed unlocks at the exact expiration time and added some tests for that edge case ZIP is posted: beam us up |
Implement ZIP:deeZNNutz-0002 for Hash(ed) Time Lock(ed) Contracts using NoM's default SHA3-256 and the widespread SHA2-256 hash functions Add an embedded smart contract z1qxemdeddedxhtlcxxxxxxxxxxxxxxxxxygecvw with 5 contract methods: - Create - Reclaim - Unlock - DenyProxyUnlock - AllowProxyUnlock Add a json-rpc api 'embedded.htlc' with 2 methods: - GetById - GetProxyUnlockStatus Create, Reclaim, and Unlock implement the standard HTLC logic. In addition, the contract provides a Proxy Unlock feature. Most applications of HTLCs, e.g. Atomic Swaps, use a shared hashlock for atomicity between transactions which can span across multiple networks. These use cases require parties to monitor a network for publicly posted hashlock preimages and make corresponding transactions before timelocks expire. The Proxy Unlock feature allows anyone with the correct preimage to Unlock an HTLC on behalf of the hashlocked user. The original hashlocked address receives the funds regardless of who unlocked the HTLC. Effectively, this allows other network participants to help enforce the atomicity of transactions such as atomic swaps. NoM's feeless properties take this from a possibility to a plausibility. The Proxy Unlock feature is set at the account level and can be toggled with the DenyProxyUnlock and AllowProxyUnlock contract methods. The feature is opinionatedly enabled by default because: - transaction atomicity seems to be the primary/only use case of HTLCs - it does not impose additional burdens on any user involved - the only loss is unlock optionality, but funds can always be sent back - removes a step for the average user to use HTLCs with increased safety that they may otherwise not take
@georgezgeorgez the test |
strange |
so during development i used the github workflow file is using i see the error in the pipeline hmmm... |
oh i guess it is the exit 1 and i am running it directly from my shell |
oh yeah i just realized |
@zenon-network |
No description provided.