Questions tagged [python]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
7 views

Python equivalent to Ogmios?

Has somebody written a library equivalent to Ogmios, that has the same functionalities, including a chain sync protocol, but entirely written in Python?
user avatar
2 votes
1 answer
36 views

Derive public key hash from bech32 address using python

I know that this is possible in javascript using the cardano serialization lib, as follows: function toHex(bytes){ return Buffer.from(bytes).toString("hex"); } function addrToPubKeyHash(...
user avatar
  • 733
3 votes
2 answers
97 views

Cbor address to bech32 type address in JS or python

I have managed to retrive a user address from a dapp connector wallet using JS: api_promise = window.cardano.{wallet}.enable(); api_promise.then(function(api) { addr_promise = api.getUsedAddresses();...
user avatar
  • 141
0 votes
3 answers
61 views

Similar source for Cardano

I want to generate public and private keys with an address. I found this repository but it doesn't support Cardano. Does anybody know any similar source?
user avatar
  • 29
1 vote
1 answer
129 views

Serialize a transaction in python

I want to use the "Submit a transaction" method in Blockfrost but it needs an already serialized transaction. Does anybody know how to serialize a transaction in python? (I don't wanna use ...
user avatar
  • 29
0 votes
0 answers
33 views

Reward calculation using Python

I've checked the different stack exchange questions and forum.cardano.org, and I can't find the clarification of whether my Python script is using the right values for calculating a pool's reward ...
user avatar
7 votes
2 answers
301 views

How do I properly derive a stake key from an address using Bech32?

I'm trying to get a stake address from a Shelley address in Python using this library: https://pypi.org/project/bech32/ I can convert an address from bech32 to hex without issue, but I'm getting stuck ...
user avatar
7 votes
2 answers
686 views

bech32 in Shelley addresses

I'm trying to write address validation in Python. According to the docs, Shelley addresses are encoded with bech32 and the first byte of the payload consists of header_type (4 bits) and network_tag (4 ...
user avatar
  • 756
4 votes
2 answers
1k views

How to derive addresses from a key exported from Yoroi

I’d like to code a small crypto portfolio app using python. So to track my ADA, I need to scan the addresses of my wallet. I found Yorois feature to export a “key” and conveniently, it also states the ...
user avatar
  • 291
6 votes
1 answer
115 views

Re-Implementing Policy Hashing in Python

As the title says, I want to to reimplement the hashing part of a policy script in Python 3. I have already made a post over at forums.cardano.org, and someone has pointed me to the right direction of ...
user avatar
  • 80