Credits Blockchain

Credits is a blockchain development framework and platform provider for building secure and scalable permissioned blockchains in the simple way.

class BalanceTransform(Transform):
    def __init__(self, from_address, to_address, amount):
        self.from_address = from_address
        self.to_address = to_address
        self.amount = amount

    def apply(self, state):
        # Cryptocurrency in 3 lines!
        balances = state["core.credits.balance.Balances"]
        balances[self.from_address] -= self.amount
        balances[self.to_address] += self.amount

        return state, None
# "Hello Bob! Hello Joe!"
transform = BalanceTransform(BOB_ADDR, JOE_ADDR, 100)

proof = SingleKeyProof(
    address=BOB_ADDR,
    nonce=0,
    challenge=transform.hash(HASH_PROVIDER),
)

transaction = Transaction(
    transform=transform,
    proofs=[proof.sign(DAVID)]
)

# JSONify this and POST to /api/v1/transaction
transaction.marshall()  

Yup, it's that easy!

Review our documentation, sign up with public PaaS via the API and start writing your blockchain using Credits framework.