moneybutton / yours-core

Client-side key and content management for Yours.
https://www.yours.network
MIT License
132 stars 27 forks source link

dattcore: Create non-blocking to/from methods for objects with crypto, and asynchronous methods where non-blocking not possible #51

Closed ryanxcharles closed 8 years ago

ryanxcharles commented 9 years ago

Sometimes we want to convert a buffer into a crypto object, such as a public key or an extended public key, or our own objects like ContentAuth, but we don't want the to/from methods to block. Unfortunately some of the crypto in the to/from methods do block, such as converting a compressed public key into a pubkey object. We need to create non-blocking methods for these objects.

ryanxcharles commented 8 years ago

Fixed in a series of commits that integrate the new fullnode worker interface, particularly from 8b4dd5c to 617e7e7