This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
component:data [2016/12/08 20:52] solra_bizna Tell which callbacks are at which tier |
component:data [2019/03/09 16:14] is2511 [Tier 3 Callbacks] |
||
---|---|---|---|
Line 47: | Line 47: | ||
verifies the signature using the public key and the previously generated | verifies the signature using the public key and the previously generated | ||
generated signature string. and the original string. | generated signature string. and the original string. | ||
- | - `ecdh(privateKey:userdata, publicKey:userData):string` | + | - `ecdh(privateKey:userdata, publicKey:userdata):string` |
Generates a Diffie-Hellman shared key using the first user's private key and | Generates a Diffie-Hellman shared key using the first user's private key and | ||
the second user's public key. An example of a basic key relation: | the second user's public key. An example of a basic key relation: | ||
- | `ecdh(userA.private, userB.public) == ecdh(userB.private, usera.public)` | + | `ecdh(userA.private, userB.public) == ecdh(userB.private, userA.public)` |
- `deserializeKey(data:string, type:string):table` | - `deserializeKey(data:string, type:string):table` | ||
Transforms a key from string to it's arbitrary type. | Transforms a key from string to it's arbitrary type. |