bl4ck5un / Town-Crier

Town Crier: an Authenticated Data Feeds for Smart Contracts
https://town-crier.netlify.app/
Other
133 stars 25 forks source link

why make attestation with 0x90...... ??? #53

Closed varvelworld closed 6 years ago

varvelworld commented 6 years ago

https://github.com/bl4ck5un/Town-Crier/blob/60f424114f92563b3df9abaca21a4abcf9d692a7/src/Enclave/ecall_attestation.cpp#L59

why not pub key's hash ???

bl4ck5un commented 6 years ago

Hi, in the version you linked to, the public key is hardcoded and already covered by attestation (in the form of address (essentially a hash of the public key)) https://github.com/bl4ck5un/Town-Crier/blob/60f424114f92563b3df9abaca21a4abcf9d692a7/src/Common/Constants.h#L86.

varvelworld commented 6 years ago

so what does 0x90... mean ?

bl4ck5un commented 6 years ago

That’s just a dummy value.

On Thu, Jun 28, 2018 at 00:55 varvelworld notifications@github.com wrote:

so what does 0x90... mean ?

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/bl4ck5un/Town-Crier/issues/53#issuecomment-400946284, or mute the thread https://github.com/notifications/unsubscribe-auth/ACUmWPVwEDbKlfoaJ0fu1i_b584AU2wVks5uBIvWgaJpZM4U60dC .