This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
import grpc | |
import json | |
from pactus.crypto import CryptoConfig | |
from pactus.crypto.address import Address | |
from pactus.crypto.bls.private_key import PrivateKey | |
from pactus.transaction.transaction import Transaction | |
from pactus.types.amount import Amount | |
from pactus.rpc.transaction_pb2_grpc import TransactionStub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import secrets | |
from pactus.crypto import CryptoConfig | |
from pactus.crypto.address import AddressType, Address | |
from pactus.crypto.bls.private_key import PrivateKey, PublicKey | |
def main() -> None: | |
addresses = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
def is_odd(num: int): | |
if (num % 2) == 0: | |
return False | |
return True | |
def collatz(num: int): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int factorial(int n) { | |
if (n == 0) { | |
return 1; | |
} | |
return n * factorial(n -1); | |
} | |
int main() |