(pubkey)
| 112 | |
| 113 | @staticmethod |
| 114 | def _decode_pubkey(pubkey): |
| 115 | i = 0 |
| 116 | curve = unpack('!H', pubkey[i:i + 2])[0] |
| 117 | i += 2 |
| 118 | tmplen = unpack('!H', pubkey[i:i + 2])[0] |
| 119 | i += 2 |
| 120 | pubkey_x = pubkey[i:i + tmplen] |
| 121 | i += tmplen |
| 122 | tmplen = unpack('!H', pubkey[i:i + 2])[0] |
| 123 | i += 2 |
| 124 | pubkey_y = pubkey[i:i + tmplen] |
| 125 | i += tmplen |
| 126 | return curve, pubkey_x, pubkey_y, i |
| 127 | |
| 128 | @staticmethod |
| 129 | def _decode_privkey(privkey): |
no outgoing calls
no test coverage detected