Skip to content
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

Hierarchical SINs #7

Closed
wants to merge 2 commits into from
Closed

Hierarchical SINs #7

wants to merge 2 commits into from

Conversation

ryanxcharles
Copy link
Contributor

A proof-of-concept of hierarchical SINs. Here's an example of how to use it to derive any SIN in the hierarchy:

> var hsin = bitauth.genHSin();
undefined
> bitauth.hSin(hsin.hsinpriv, 'm/0');
{ hsinpriv: 'xprv9v54hVAqMx9wGiJKgdHEhodP3kGTdFxETu7yd8xDZCzkK6Gm7ax1vYU8qgSJtbH9bsp3u9q3FXpRFVR7p9WT9W5jxGaVmCGPXPEiRwxPrSq',
  SIN: 'TfFs1TcjnkUcUso7TFRUmbKf4h64acJsXLs' }
> bitauth.hSin(hsin.hsinpriv, 'm/1');
{ hsinpriv: 'xprv9v54hVAqMx9wKCrhxNUaQ24ESQ2Kindf2LiE2TkY4k9XFgAmuudRHppf6o8ccCVArmGE7sJoGe26wRG2FLWJRiQBzZqnnkEAkRaDM7j6ZnT',
  SIN: 'TfHMPG1NHydRNVwdP1gBHLdMKxitR1U1NJ5' }
> bitauth.hSin(hsin.hsinpriv, 'm/1/5');
{ hsinpriv: 'xprv9xNv8zzXaSNYAePsB3UU1Nhm423bSsmTRtPcdBmJ2B8rdHv5kSZGmePCYJMjopz2qdR2bmhsvadhmG1BBm36xk5m5U4zKicmtTDvTkmsCbH',
  SIN: 'Tf5PZxnPSBnzThnBbUX1dvhP2Ao28C4wYB8' }
> bitauth.hSin(hsin.hsinpriv, 'm/1/5/30');
{ hsinpriv: 'xprv9yJ7WJ7Gtd49kU6eaZ3gMkGppNFWGTeVhVdjgM8V7GwxZRxf54Hj5HoCYfXm8RfLcjdkFgsmJCyz2dwhytChCFihBnzo8pHg83KhvDJ3krk',
  SIN: 'TfJW9ey44uY7R6EKqfdpWnCNU7NMS1RiVFM' }
> bitauth.hSin(hsin.hsinpriv, 'm/1/5/35');
{ hsinpriv: 'xprv9yJ7WJ7Gtd49ytWE3JpPNmbhLkWPG6awQp8iX6h9F8CYJtsYARTpcNuvDR8qnbK2HXKBRFf8NSHxzo8URukhZQiZvYu7VdkUN7vYE7eEZSa',
  SIN: 'Tf9r9rVLBiQqpkoyitCmfhmfquXEJzE6KYm' }
> bitauth.hSin(hsin.hsinpriv, 'm/1/5/35/4000');
{ hsinpriv: 'xprvA1Y6amBTTmmGqLjaZewvpZNDMrjPCGNkv3DQHXP3RRW5AYSkGAnd36fdco98YtFVbff51y8TjSf33HfsDqiNQsmjBGBkMfToN3YJ2ioX7sB',
  SIN: 'Tf4owKM624toBTbaM8Ghq1BCzREewft8dEr' }

Addresses #5

@martindale martindale changed the title Hierarchical Sin Hierarchical Sins Oct 7, 2014
@martindale martindale changed the title Hierarchical Sins Hierarchical Identities Oct 7, 2014
@martindale martindale changed the title Hierarchical Identities Hierarchical SINs Oct 7, 2014
@levino
Copy link

levino commented May 26, 2015

What is a "SIN"?

@xcthulhu
Copy link
Contributor

@levino : System Identification Number ; it's a hashed public key with a checksum to help with detecting copy-errors. It's a BitCoin innovation.

@ryanxcharles : Does this conform to Armory's HD-Wallet system? Because while I'm all for this, I'd rather we just hug the industry standards as best we can...

@levino
Copy link

levino commented Oct 31, 2018

Please close this PR.

@martindale
Copy link
Contributor

...or update it.

@martindale
Copy link
Contributor

Abandoned?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants