Timo Hanke [ARCHIVE] on Nostr: 📅 Original date posted:2013-11-04 📝 Original message:On Sun, Nov 03, 2013 at ...
📅 Original date posted:2013-11-04
📝 Original message:On Sun, Nov 03, 2013 at 09:39:42AM +0100, Thomas Voegtlin wrote:
>
> Le 03/11/2013 08:40, Timo Hanke a écrit :
> >I think the communication would have to go the other way around. Trezor
> >has to commit to a value First. Like this:
> >
> >Trezor picks random s and sends S=s*G to computer, keeping s secret.
> >Computer picks random t and sends t to Trezor. Trezor makes r := s+t
> >its internal master private key with corresponding master public key
> >R := (s+t)*G. Since R = S+t*G, the computer can verify the master
> >public key. As you say, the computer can then store R and can later
> >verify for each derived pubkey that it was indeed derived from R, hence
> >from his own entropy t.
>
> I'm not sure how this differs from what I wrote...
Sorry, yes, of course it's the same..
Your very first proposal was fine, provided that Trezor commits to its
random value first.
> However, if this is how it works, then my question remains:
> The computer has no proof to know that pubkeys derived through
> bip32's private derivations are derived from its own entropy...
> This verification would only work for public (aka type2) derivations.
>
> .. but maybe Trezor works in a different way? I think an explanation
> from slush would be needed.
Does Trezor even use private derivation?
Regardless of whether the derivation is private or public, and
regardless of what kind of proof you use to show that the master public
key was derived from user supplied entropy, my question also remains:
How do you verify your backup? The backup is a seed or private key. It's
too long to do any meaningful computation by hand. So you would need a
second offline device, eg a second Trezor in "restore mode", just to
verify your backup.
Timo
> >However, Trezor could not use straight bip32 out of the box. The
> >chaincode would have to be something like SHA(R). And the seed (that
> >gets translated to mnemonic) would be r itself, making it 256 bit
> >instead of only 128 bit.
> >
> >If the longer seed is bearable then this is a good way to do it.
> >
> >One question remains: if you only write down the mnemonic how can you be
> >sure that it is correct and corresponds to the secret in Trezor? You
> >cannot verify that on paper. You would have to restore it on some
> >device, eg another empty Trezor, and see if it brings up the same master
> >pubkey. Right?
> >
> I guess you have to trust Trezor that it derives R from r
>
>
>
>
--
Timo Hanke
PGP 1EFF 69BC 6FB7 8744 14DB 631D 1BB5 D6E3 AB96 7DA8
Published at
2023-06-07 15:08:33Event JSON
{
"id": "5e6ab241fbd5d6570fd7ce8e88ed95a992625232d239430e31dbf37146745e3a",
"pubkey": "6b41dfcce682764d40c00fd6580a99614b6bbe8a8332085dea07afbc47ba9e8f",
"created_at": 1686150513,
"kind": 1,
"tags": [
[
"e",
"29113580fa19bfa912e033228b5744547f424bd6ae7dcc6dbdef306e0b87998e",
"",
"root"
],
[
"e",
"f2d98c49a23f1c7224168db8fa9a5f8ed5fd755c2b6fb21f6e80bd39f76099ff",
"",
"reply"
],
[
"p",
"7a4ba40070e54012212867182c66beef592603fe7c7284b72ffaafce9da20c05"
]
],
"content": "📅 Original date posted:2013-11-04\n📝 Original message:On Sun, Nov 03, 2013 at 09:39:42AM +0100, Thomas Voegtlin wrote:\n\u003e \n\u003e Le 03/11/2013 08:40, Timo Hanke a écrit :\n\u003e \u003eI think the communication would have to go the other way around. Trezor\n\u003e \u003ehas to commit to a value First. Like this:\n\u003e \u003e\n\u003e \u003eTrezor picks random s and sends S=s*G to computer, keeping s secret.\n\u003e \u003eComputer picks random t and sends t to Trezor. Trezor makes r := s+t\n\u003e \u003eits internal master private key with corresponding master public key\n\u003e \u003eR := (s+t)*G. Since R = S+t*G, the computer can verify the master\n\u003e \u003epublic key. As you say, the computer can then store R and can later\n\u003e \u003everify for each derived pubkey that it was indeed derived from R, hence\n\u003e \u003efrom his own entropy t.\n\u003e \n\u003e I'm not sure how this differs from what I wrote...\n\nSorry, yes, of course it's the same..\nYour very first proposal was fine, provided that Trezor commits to its\nrandom value first.\n\n\u003e However, if this is how it works, then my question remains:\n\u003e The computer has no proof to know that pubkeys derived through\n\u003e bip32's private derivations are derived from its own entropy...\n\u003e This verification would only work for public (aka type2) derivations.\n\u003e \n\u003e .. but maybe Trezor works in a different way? I think an explanation\n\u003e from slush would be needed.\n\nDoes Trezor even use private derivation?\n\nRegardless of whether the derivation is private or public, and\nregardless of what kind of proof you use to show that the master public\nkey was derived from user supplied entropy, my question also remains:\nHow do you verify your backup? The backup is a seed or private key. It's\ntoo long to do any meaningful computation by hand. So you would need a\nsecond offline device, eg a second Trezor in \"restore mode\", just to\nverify your backup.\n\nTimo\n\n\u003e \u003eHowever, Trezor could not use straight bip32 out of the box. The\n\u003e \u003echaincode would have to be something like SHA(R). And the seed (that\n\u003e \u003egets translated to mnemonic) would be r itself, making it 256 bit\n\u003e \u003einstead of only 128 bit.\n\u003e \u003e\n\u003e \u003eIf the longer seed is bearable then this is a good way to do it.\n\u003e \u003e\n\u003e \u003eOne question remains: if you only write down the mnemonic how can you be\n\u003e \u003esure that it is correct and corresponds to the secret in Trezor? You\n\u003e \u003ecannot verify that on paper. You would have to restore it on some\n\u003e \u003edevice, eg another empty Trezor, and see if it brings up the same master\n\u003e \u003epubkey. Right?\n\u003e \u003e\n\u003e I guess you have to trust Trezor that it derives R from r\n\u003e \n\u003e \n\u003e \n\u003e \n\n-- \nTimo Hanke\nPGP 1EFF 69BC 6FB7 8744 14DB 631D 1BB5 D6E3 AB96 7DA8",
"sig": "507125b407f51cde857c6cc27453a4f9beff59477b51a26c89b6a7346326ef3547acaac4945dd484490d332903e63c124c5da490884f8c9033f050ebfdf72c11"
}