vulpemventures / ocean

:ocean: Elements/Liquid wallet daemon
MIT License
5 stars 7 forks source link

api spec #1

Closed sekulicd closed 2 years ago

sekulicd commented 2 years ago

This adds api spec of the wallet daemon. Purpose of a daemon is to run as a sidecar for other applications and removes 'heavy burden' of maintaining internal wallet. Protobuf files are splitted into 4 files that I see as main features of the wallet. Wallet -> covers creation/restore of wallet Account -> covers creation on addresses, tracking balance and uspents for specific account Transaction -> used for crafting various types of transactions Notification -> defines rpc's that are to be used for fetching notification.

@tiero @altafan please review.

tiero commented 2 years ago

Just to keep in mind, Conceptually we can load the wallet also in a watch-only mode ie. no signing keys on board, only xpub(s) and master blinding key.

Maybe an RPC in Wallet service that gives us this info could be helpful