Skip to content

Commit

Permalink
Add Shamir Secret Sharing to SEP-0005
Browse files Browse the repository at this point in the history
  • Loading branch information
tupui authored Jan 3, 2025
1 parent 82fa947 commit f51498c
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions ecosystem/sep-0005.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@ mnemonic code.

We strongly recommend using 24 word mnemonic (256 bits of entropy).

### Sharing Mnemonic Codes

Shamir Secret Sharing (SSS) method, as described in
[SLIP-0039](https://github.com/satoshilabs/slips/blob/master/slip-0039.md) should be used as a way to split a
mnemonic code into multiple parts.

BIP-0039 seed should be used to derive the multiparts menomonic. The parts are non-deterministic and any derivation
leads to the same set of keys.

## Rationale

`BIP`s and `SLIP`s are industry standards used by a majority of cryptocurrencies and software/hardware wallets.
Expand Down Expand Up @@ -96,6 +105,16 @@ m/44'/148'/8' GDJTCF62UUYSAFAVIXHPRBR4AUZV6NYJR75INVDXLLRZLZQ62S44443R SCD5OSHUU
m/44'/148'/9' GBTVYYDIYWGUQUTKX6ZMLGSZGMTESJYJKJWAATGZGITA25ZB6T5REF44 SCJGVMJ66WAUHQHNLMWDFGY2E72QKSI3XGSBYV6BANDFUFE7VY4XNXXR
```

Shamir Secret Sharing shares (non-deterministic):

```
hazard morning academic acid acne sunlight year axle squeeze numerous swimming vocal aluminum plains friendly erode emission manager emperor sled steady club prisoner object penalty parcel stilt victim junction custody tadpole hour traffic roster yield losing evening fraction fawn deal symbolic lamp dilemma declare tackle racism hanger increase impulse lilac cards step paper firm software spider quiet fumes remember
hazard morning academic agency acne numerous clock wireless galaxy symbolic zero alien lips eyebrow secret legal steady deny mama charity thumb museum jury mixed froth resident hesitate critical organize emphasis texture manual rumor fortune staff alive ticket museum theater legs idle receiver extend gray aspect thunder olympic decorate drug senior large darkness tendency arcade adapt romp dismiss solution enlarge
hazard morning academic always acne forecast traffic ecology tadpole knit obesity extend answer diagnose ivory buyer grumpy moment shame moisture painting crisis agree main exchange woman activity estimate process wolf raisin curly repair overall aspect emphasis aquatic primary downtown blessing owner type wavy nuclear greatest junction length voter typical busy swing identify champion mansion ruin worthy roster endorse genuine
```

### Test 2

Mnemonic (15 words):
Expand Down Expand Up @@ -131,6 +150,16 @@ m/44'/148'/8' GD3KWA24OIM7V3MZKDAVSLN3NBHGKVURNJ72ZCTAJSDTF7RIGFXPW5FQ SBDNHDDIC
m/44'/148'/9' GB3C6RRQB3V7EPDXEDJCMTS45LVDLSZQ46PTIGKZUY37DXXEOAKJIWSV SDHRG2J34MGDAYHMOVKVJC6LX2QZMCTIKRO5I4JQ6BJQ36KVL6QUTT72
```

Shamir Secret Sharing shares (non-deterministic):

```
cargo crush academic acid acid username smart freshman sweater echo cargo testify capture intimate champion trouble fangs decrease focus national ivory glasses ajar burden library therapy nervous soul freshman building capture segment ordinary phantom debut ambition chubby math unfair painting dryer wrist platform public class duckling hanger remove kernel threaten space float syndrome injury smirk testify angel glen health
cargo crush academic agency acne unfold plunge home blanket flavor fridge always focus lobe entrance elder paid diagnose hesitate realize midst soul retreat olympic research alive secret imply blue column trust process unkind zero random magazine webcam meaning academic burning writing package capture clay hobo clay boundary frost fangs density hormone wildlife dramatic crunch rumor prune slow slice wisdom
cargo crush academic always acquire phantom realize laser findings alive crowd image method wireless testify drink snake fiscal learn mobile puny holy grill spider verdict erode losing bishop shaft artist vexed eyebrow join judicial making ancient march that nail failure pants failure scroll nuclear romantic gesture desire voter crisis ceiling ancestor numb acrobat segment safari location black express academic'
```

### Test 3

Mnemonic (24 words):
Expand Down Expand Up @@ -166,6 +195,16 @@ m/44'/148'/8' GDHX4LU6YBSXGYTR7SX2P4ZYZSN24VXNJBVAFOB2GEBKNN3I54IYSRM4 SCGMC5AHA
m/44'/148'/9' GDXOY6HXPIDT2QD352CH7VWX257PHVFR72COWQ74QE3TEV4PK2KCKZX7 SCPA5OX4EYINOPAUEQCPY6TJMYICUS5M7TVXYKWXR3G5ZRAJXY3C37GF
```

Shamir Secret Sharing shares (non-deterministic):

```
artist survive academic acid acquire username lily rainbow observe guitar diagnose identify literary include lend luck saver cause become testify domain regret numerous edge amount pancake class bracelet belong beam gums mortgage liquid depend believe envy miracle album award liquid duckling enemy cover prisoner welcome violence born research hour pregnant elite guilt work wrap exercise express favorite emperor decent
artist survive academic agency acid cargo guard platform galaxy briefing crisis climate clinic wildlife domestic darkness weapon security shadow western juice adorn voting pile rocky mixed obtain class blanket width estate scholar source society manual subject spew grief ancestor pupal engage envy says adorn permit lunar modify repair kidney retailer safari hormone lunch finger papa chest cargo cylinder warn
artist survive academic always acne energy verdict march amazing lunch campus building tackle glen terminal extra receiver twin advocate believe replace perfect therapy ancient ladybug prepare verdict wavy busy prepare orange dining corner verdict mayor priority capture scholar racism program single deny friendly identify emerald blanket prisoner recover estate temple echo graduate boundary primary legal beyond intimate leader charity
```

### Test 4

Mnemonic (24 words + BIP 39 passphrase):
Expand Down Expand Up @@ -203,6 +242,16 @@ m/44'/148'/8' GDS5I7L7LWFUVSYVAOHXJET2565MGGHJ4VHGVJXIKVKNO5D4JWXIZ3XU SAIZA26BU
m/44'/148'/9' GBOSMFQYKWFDHJWCMCZSMGUMWCZOM4KFMXXS64INDHVCJ2A2JAABCYRR SDXDYPDNRMGOF25AWYYKPHFAD3M54IT7LCLG7RWTGR3TS32A4HTUXNOS
```

Shamir Secret Sharing shares (non-deterministic):

```
desert omit academic acid acne jacket shrimp upstairs view resident various emission oral length numerous task fraction peasant faint machine literary angel gravity reunion column sack welfare arcade engage flip dryer symbolic debut amazing safari ceiling usual shelter robin scramble work cubic lift deadline square romp corner orbit dilemma fragment transfer teacher trouble repair lips human gray liquid python
desert omit academic agency academic scroll pancake dough year thunder woman raisin garden privacy herald theater greatest dilemma curly living union voice home alien pupal fiscal realize mortgage adorn havoc unkind petition diet short piece easel decrease junction fact fatal pitch equation remove knife cowboy laden artist install priority example adequate program genuine alive penalty meaning learn cover born
desert omit academic always acquire heat robin photo theater home exceed ceramic laundry rapids income temple coastal main recover facility fatal ordinary glance evoke boring loud salon wits slap disease costume headset dream maiden relate capital hawk security safari cowboy flame main tofu erode depart require glen armed breathe bedroom crunch rich toxic royal science tricycle intimate tracks screw
```

### Test 5

Mnemonic (12 words - entropy bytes: `00000000000000000000000000000000`):
Expand Down Expand Up @@ -238,6 +287,16 @@ m/44'/148'/8' GABTYCZJMCP55SS6I46SR76IHETZDLG4L37MLZRZKQDGBLS5RMP65TSX SC6N6GYQ2
m/44'/148'/9' GAKFARYSPI33KUJE7HYLT47DCX2PFWJ77W3LZMRBPSGPGYPMSDBE7W7X SALJ5LPBTXCFML2CQ7ORP7WJNJOZSVBVRQAAODMVHMUF4P4XXFZB7MKY
```

Shamir Secret Sharing shares (non-deterministic):

```
single fawn academic acid academic invasion lungs luxury thumb pile paid remove upstairs regret beam roster overall epidemic emission alarm hamster miracle density ladybug auction velvet debris bulb quick kernel often best endless coal toxic saver withdraw rhythm ancestor lobe toxic stay lungs again shaft speak mailman divorce hormone tidy floral mayor hybrid blanket ending that devote elevator airport
single fawn academic agency acid dish paper ruler impact scene avoid recall bedroom likely grumpy grant adorn level pupal galaxy glad flexible mobile dish biology loan exchange award rescue knife lend debut image presence aviation peaceful museum spark papa edge jewelry leaves squeeze tolerate destroy headset single dramatic category firm join spark firm density sprinkle founder paper finance phrase
single fawn academic always acne ultimate kernel suitable speak anatomy aviation permit cowboy pickup execute smear revenue style brother radar laundry hormone rumor verify domestic bundle surface upgrade payroll capital anatomy solution corner formal nail liquid costume amazing excuse shame romp airport clay emission craft smell alarm devote vegan lobe pink desktop drift deliver square spend plunge software domestic
```

## Reference Implementation

- Console HD wallet: https://github.com/stellar/go/tree/master/tools/stellar-hd-wallet
Expand Down

0 comments on commit f51498c

Please sign in to comment.