def sc_reduce(self, input): integer = ed25519.decodeint(input) modulo = integer % ed25519.l return hexlify(ed25519.encodeint(modulo)).decode()
def public_view_key(self): keyInt = ed25519.decodeint(unhexlify(self.secret_view_key())) aG = ed25519.scalarmultbase(keyInt) return hexlify(ed25519.encodepoint(aG)).decode()