Bitcoin Forum
November 06, 2024, 05:45:52 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: public master keys to addresses  (Read 107 times)
thaten (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
January 17, 2023, 04:08:04 PM
 #1

Hello,
I am searching for a self Hosted (!!) solution to generate addresses from a public zpub key. It would be great, if it has an intigrated rest api inside. Maybe something for nodejs would be very nice.

This would be a nice solution for cold storage wallets.

I am currently using https://github.com/romanz/electrs for various stuff, but unfortunately I dont find any api details anymore.

NeuroticFish
Legendary
*
Offline Offline

Activity: 3850
Merit: 6583


Looking for campaign manager? Contact icopress!


View Profile
January 17, 2023, 04:14:12 PM
 #2

I am currently using https://github.com/romanz/electrs for various stuff, but unfortunately I dont find any api details anymore.

The documentation for the Electrum Server Protocol is the same as for ElectrumX, i.e. this one: https://electrumx-spesmilo.readthedocs.io/en/latest/protocol.html
Electrs most probably also follows that.

███████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████

███████████████████████
.
BC.GAME
▄▄▀▀▀▀▀▀▀▄▄
▄▀▀░▄██▀░▀██▄░▀▀▄
▄▀░▐▀▄░▀░░▀░░▀░▄▀▌░▀▄
▄▀▄█▐░▀▄▀▀▀▀▀▄▀░▌█▄▀▄
▄▀░▀░░█░▄███████▄░█░░▀░▀▄
█░█░▀░█████████████░▀░█░█
█░██░▀█▀▀█▄▄█▀▀█▀░██░█
█░█▀██░█▀▀██▀▀█░██▀█░█
▀▄▀██░░░▀▀▄▌▐▄▀▀░░░██▀▄▀
▀▄▀██░░▄░▀▄█▄▀░▄░░██▀▄▀
▀▄░▀█░▄▄▄░▀░▄▄▄░█▀░▄▀
▀▄▄▀▀███▄███▀▀▄▄▀
██████▄▄▄▄▄▄▄██████
.
..CASINO....SPORTS....RACING..


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
n0nce
Hero Member
*****
Offline Offline

Activity: 882
Merit: 5918


not your keys, not your coins!


View Profile WWW
January 17, 2023, 10:07:19 PM
Merited by LoyceV (4), ABCbits (2), witcher_sense (1)
 #3

As you can see here, generating addresses from an extended public key is not that hard.



That being said, existing solutions can be found easily on GitHub. This one for example, seems to fit almost exactly your description; since it's in JavaScript it should be easy to embed it in a NodeJS application with API that you add yourself. https://github.com/swan-bitcoin/xpub-tool


█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
thaten (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
January 18, 2023, 06:53:27 AM
 #4

I am currently using https://github.com/romanz/electrs for various stuff, but unfortunately I dont find any api details anymore.

The documentation for the Electrum Server Protocol is the same as for ElectrumX, i.e. this one: https://electrumx-spesmilo.readthedocs.io/en/latest/protocol.html
Electrs most probably also follows that.
I am talking about the Rest API from Electrs. It differs from the ElectrumX protocoll.

As you can see here, generating addresses from an extended public key is not that hard.

https://learnmeabitcoin.com/technical/images/extended-keys/child-extended-public-key-normal.png

That being said, existing solutions can be found easily on GitHub. This one for example, seems to fit almost exactly your description; since it's in JavaScript it should be easy to embed it in a NodeJS application with API that you add yourself. https://github.com/swan-bitcoin/xpub-tool
Thanks, I will look into that and update, once it is working.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!