Added receipts for tx creation

This commit is contained in:
obscuren
2014-05-02 14:08:54 +02:00
parent e798f221dd
commit 1f6df0cd52
3 changed files with 28 additions and 8 deletions

View File

@ -43,6 +43,22 @@ func NewPKey(key *ethchain.KeyPair) *PKey {
return &PKey{ethutil.Hex(key.Address()), ethutil.Hex(key.PrivateKey), ethutil.Hex(key.PublicKey)}
}
type PReceipt struct {
CreatedContract bool
Address string
Hash string
Sender string
}
func NewPReciept(contractCreation bool, creationAddress, hash, address []byte) *PReceipt {
return &PReceipt{
contractCreation,
ethutil.Hex(creationAddress),
ethutil.Hex(hash),
ethutil.Hex(address),
}
}
/*
type PKeyRing struct {
Keys []interface{}