bitcoin-sv-specs / peerchannels

brfc-peerchannels
Other
31 stars 9 forks source link

Define "accountID"? #3

Open johnpitts opened 3 years ago

johnpitts commented 3 years ago

Documentation mentions "accountID" many times in the API endpoints, but where does an account get it's ID? Self-generated? A BitCoin public key?

Maybe a dumb question, but nonetheless asking it anyway.

Danconnolly commented 2 years ago

Its a good question and will be addressed.

rt121212121 commented 2 years ago

This is not relevant to this specification because this specification does not define how a service maintains it's own accounts. You could use an arbitrary string or a numeric identifier.

I think the only reason that an accountid would be defined would be if there were a standard way to open accounts programmatically via API with peer channel servers, so for instance for an application that would let the user choose to use "johnpitts" peer channel hosting business or "electrumsv" peer channel hosting business.

ElectrumSV's server model has it's own programmatic account creation via an API, but some businesses would have web form-based sign up.