Questions tagged [serpent]

programming language for writing contracts

Filter by
Sorted by
Tagged with
4
votes
1answer
103 views

How are function signature hashes calculated in serpent?

We know in solidity it is something like this bytes4(keccak256("hello(string)") but what about serpent? In Theory we should be able to call serpent contract code from solidity using these signature ...
0
votes
1answer
70 views

Serpent Vulnerabilities, Migrate to Solidity?

With recent high profile bugs discovered in the core Serpent Language, would it be wise to henceforth make Solidity the deFacto Dapp Language? https://medium.com/@AugurProject/serpent-compiler-...
1
vote
1answer
20 views

What does Data Keyword do?

data domains[](owner, ip) # list Source video:
1
vote
1answer
245 views

Could Ethereum obtain broad contract language support like NEO?

I recently saw NEO being advertised as Ethereum but with multiple language support for smart contracts. Is this really something that Ethereum lacks? Is it not technically possible to build more ...
2
votes
1answer
859 views

How can you split calldata bytes to an arbitrary number of different log events?

The following code is incomplete. What I want to do is split the bytes data (calldata) into two or more separate log functions for indexing reasons. The problem is I can't figure out how to do it in ...
8
votes
3answers
4k views

Why did Serpent die?

Was really excited about the prospects of working on Ethereum with its python implementation but learnt that it's getting deprecated...why has this happened and can we hope for any other python ...
5
votes
2answers
2k views

How to implement cryptographic algorithms in smart contracts?

I need to implement cryptographic algorithms such as AESCCM and elliptic curve algorithms (ECDSA, ECIES) within a smart contract. Is there any implementation of such algorithms in Solidity or Serpent? ...
2
votes
1answer
87 views

Does Serpent/Solidity allow functions to jump into other functions?

Do either Serpent or Solidity allow calling other functions in the same contract via a JUMP opcode, or do they only use CALL?
5
votes
2answers
8k views

Are there any implementations of smart contracts in Python?

I want to implement some smart contracts and I am strongest in python.
1
vote
0answers
122 views

Serpent function to compare strings

I would like to write a simple Serpent function that involves string comparison, but even the simplest example I can think of does not work as I would like. This post gets me part of the way . . . ...
1
vote
1answer
1k views

pytest test_contracts.py error: ImportError: cannot import name state_transition

I am struggling to set up pyethereum on an old ThinkPad T500 running Ubuntu 16.04 and Python 2.7.11+, following installation instructions here and here. When I test the installation with: pyethereum/...
4
votes
0answers
69 views

How can I link the serpent compiler to geth?

geth offers the function eth.compile.serpent. However, when I try to provide some source to the compiler, it returns The method eth_compileSerpent does not exist/is not available. I wonder: How can ...
1
vote
1answer
86 views

Help me debug this delegatecall Serpent demo I'm working on?

https://gist.github.com/ChrisCalderon/2818e6ba0214c25962b16c02e761dc26 Whenever I try to run it, I get "Transaction Failed". What it's supposed to do is call it's own functions double and half using ...
4
votes
1answer
72 views

How to have a private function in Serpent?

I've been reading this tutorial on contracts and implementing them in Serpent and on the bottom of page 13: Any time we reference a function within the contract, we must call it from self (a ...
6
votes
2answers
525 views

Is there a website like etherscripter.com, for Solidity?

Is there a Scratch website available for the Solidity language? The only one I could find was Etherscripter.com however that one is only for Serpent.
5
votes
1answer
133 views

Using strings in a Serpent contract

In the limited documentation on Serpent, it mentions the ability to use a str type as both input and output to a contract function. Short strings are converted to numbers and longer text uses the ...
8
votes
1answer
879 views

Can a contract access the code of another contract?

Using web3.js, the EVM (bytecode) of a contract can be obtained by web3.eth.getCode(addressOfContract). Can this be performed by a contract using the address of another contract? If so, how? ...
3
votes
1answer
90 views

Is there a comprehensive reference list of all Serpent commands?

Solidity has a particularly nice, comprehensive set of docs, and a flashy GitHub homepage. Is there an equivalent set of documentation for Serpent?
2
votes
1answer
50 views

“AssertionError: Contract code empty” when testing contract above a particular size. How do I fix it?

I'm writing a contract for arbitrary-length integer arithmetic, for use in a larger project. The problem is that once the contract gets above a certain size, the Python ethereum.tester.state()....
3
votes
1answer
231 views

How problematic is transitioning Augur's full-Serpent smart contract suite?

I read here that Augur's smart contract suite is actually written in Serpent. I'm aware that it is a relatively well supported language at the moment (at least compared to Mutan and LLL), but given ...
23
votes
1answer
9k views

How can I verify a cryptographic signature that was produced by an Ethereum address key pair

If I have a cryptographic signature from an Ethereum address key pair, how can I verify that signature?
2
votes
1answer
54 views

What are common pitfalls when coding in Serpent?

Some pitfalls for coding in Solidity are here and what kind of pitfalls are there in Serpent? (This is not related to Python, which is covered here)
10
votes
1answer
726 views

Why are contracts limited to only the previous 256 block hashes?

Why are contracts limited to only the previous 256 block hashes using the BLOCKHASH opcode (and corresponding functions in Solidity and Serpent)? Why does another contract, such as this, need to be ...
5
votes
1answer
327 views

Is there available source code for the Ethereum parser (JS/Solidity or Python/Serpent?

I've tried looking at the source code, but I'm unfamiliar with the structure. I can't seem to find a parser module or source code. I'm attempting to understand the parser and perhaps write one from ...
6
votes
1answer
424 views

What are the main differences from Python and Serpent?

Serpent looks quite similar to Python. What behaviors or syntax would be on your list to warn other Serpent developers about?
21
votes
3answers
5k views

Fundamental limitations between Solidity and Serpent

Solidity can be considered a "higher level" language than Serpent. Are there any "low level" features in Serpent or that could be implemented in Serpent, that are either impossible or infeasible to do ...