Skip to content

Instantly share code, notes, and snippets.

View walletRecover.json
{
"sk": "CD44E6F1C79AE0156C7C69273D82FABB675792EB12A1B4CA8DA0AF0DA2C329A5AF8D5096E10B1DDDA81D12AB87DFEBCE8F6A404137800F865EB8E79DC97015C1",
"pk": "AF8D5096E10B1DDDA81D12AB87DFEBCE8F6A404137800F865EB8E79DC97015C1",
"address": "z1T5W6pcwRYfT2mD8WP2CFxS6sm3AJSBAv9",
"type": {
"hash": 1,
"role": 0,
"pk": 0,
"address": 1
}
View request auth
The following is how the response of request_auth from peer looks like:
{
pk: "peer's pk",
jwt: "jwtHeader.jwtBody.signature"
}
The jwt header and body should further decode as
{
alg: "Ed25519",
View response.json
{
"app_pk": "E4852B7091317E3622068E62A5127D1FB0D4AE2FC50213295E10652D2F0ABFC7",
"challenge": "eyJhbGciOiJFZDI1NTE5IiwidHlwIjoiSldUIn0.eyJpc3MiOiJkaWQ6YWJ0OnoxbXVRM3hxSFFLMnVpQUNIeUNoaWtvYnNpWTVrTHF0U2hBIiwiaWF0IjoiMTU0ODcwMzQyMiIsIm5iZiI6IjE1NDg3MDM0MjIiLCJleHAiOiIxNTQ4ODAzNDIyIiwiY2FsbGJhY2siOiJodHRwczovL2V4YW1wbGUtYXBwbGljYXRpb24vbG9nb24iLCJyZXF1ZXN0ZWQiOlt7Im5hbWUiOiJmdWxsTmFtZSIsInR5cGUiOiJzdHJpbmcifSx7Im5hbWUiOiJwaG9uZSIsInR5cGUiOiJmb3JtYXR0ZWROdW1iZXIiLCJmb3JtYXQiOiIjIyMtIyMjLSMjIyMifSx7Im5hbWUiOiJzaGlwcGluZ0FkZHJlc3MiLCJ0eXBlIjoiYWRkcmVzcyJ9LHsibmFtZSI6InBlcnNvbmFsRGF0YVVzYWdlQWdyZWVtZW50IiwidHlwZSI6ImFncmVlbWVudCIsImNvbnRlbnQiOiJUaGlzIERhdGEgVXNhZ2UgYWdyZWVtZW50IGJldHdlZW4gdGhlIFVTRVIgYW5kIHRoZSBDT01QQU5ZIGRlc2NyaWJlcyB0aGUgcmVndWxhdGlvbnMgdW5kZXIgd2hpY2ggdGhlIHBlcnNvbmFsIGRhdGEgb2YgdGhlIFVTRVIgY2FuIGJlIHVzZWQgYnkgQ09NUEFOWS4iLCJvcHRpb25zIjpbeyJ0aWxlIjoiSSBhZ3JlZSB0aGUgQ09NUEFOWSB0byB1c2UgbXkgcGVyc29uYWwgZGF0YSBpbiBhbnkgc2l0dWF0aW9uLiJ9LHsidGlsZSI6IkkgYWdyZWUgdGhlIENPTVBBTlkgdG8gdXNlIG15IHBlcnNvbm
@dingpl716
dingpl716 / response.json
Last active Jan 30, 2019
logon_succeed
View response.json
{
"app_pk": "E4852B7091317E3622068E62A5127D1FB0D4AE2FC50213295E10652D2F0ABFC7",
"challenge": "eyJhbGciOiJFZDI1NTE5IiwidHlwIjoiSldUIn0.eyJpc3MiOiJkaWQ6YWJ0OnoxbXVRM3hxSFFLMnVpQUNIeUNoaWtvYnNpWTVrTHF0U2hBIiwiaWF0IjoiMTU0ODcwMzQyMiIsIm5iZiI6IjE1NDg3MDM0MjIiLCJleHAiOiIxNTQ4ODAzNDIyIn0.f1oyZtmWcOyksps2YCvb8hMBirZYNIf2A6y_pZ_C4b-KLiVkEkauKFESylKBGeFGjDjjGMk7LP9qGlwHu8WgBg"
}
@dingpl716
dingpl716 / keybase.md
Created May 18, 2018
For keybase validation
View keybase.md

Keybase proof

I hereby claim:

  • I am dingpl716 on github.
  • I am peiling (https://keybase.io/peiling) on keybase.
  • I have a public key ASDSz-499tem-VlOzuH86FM8yqKsYNJGRFLJ86GXKH2Jqgo

To claim this, I am signing this object: