Versions in this module Expand all Collapse all v0 v0.5.22 Jul 23, 2014 Changes in this version + const RlpEmptyList + const RlpEmptyStr + var Ada = BigPow(10, 3) + var Babbage = BigPow(10, 6) + var Big0 = big.NewInt(0) + var Big1 = big.NewInt(1) + var Big2 = big.NewInt(2) + var Big256 = big.NewInt(0xff) + var Big32 = big.NewInt(32) + var BigFalse *big.Int = big.NewInt(0) + var BigInt0 *big.Int = big.NewInt(0) + var BigTrue *big.Int = big.NewInt(1) + var Douglas = BigPow(10, 42) + var Einstein = BigPow(10, 21) + var Ether = BigPow(10, 18) + var Finney = BigPow(10, 15) + var Shannon = BigPow(10, 9) + var Szabo = BigPow(10, 12) + var Wei = big.NewInt(1) + func Address(slice []byte) (addr []byte) + func Big(num string) *big.Int + func BigCopy(src *big.Int) *big.Int + func BigD(data []byte) *big.Int + func BigMax(x, y *big.Int) *big.Int + func BigPow(a, b int) *big.Int + func BigToBytes(num *big.Int, base int) []byte + func BinaryLength(num int) int + func Bytes2Hex(d []byte) string + func BytesToNumber(b []byte) uint64 + func Char(c []byte) int + func Compile(script string, silent bool) (ret []byte, err error) + func CopyBytes(b []byte) (copiedBytes []byte) + func CurrencyToString(num *big.Int) string + func Decode(data []byte, pos uint64) (interface{}, uint64) + func DecodeWithReader(reader *bytes.Buffer) interface + func Encode(object interface{}) []byte + func ExpandHomePath(p string) (path string) + func FindFileInArchive(fn string, files []*zip.File) (index int) + func FormatData(data string) []byte + func Hex2Bytes(str string) []byte + func IsHex(str string) bool + func IsWindows() bool + func LeftPadBytes(slice []byte, l int) []byte + func NumberToBytes(num interface{}, bits int) []byte + func RandomUint64() (uint64, error) + func ReadFile(f *zip.File) ([]byte, error) + func ReadVarint(reader *bytes.Reader) (ret uint64) + func RightPadBytes(slice []byte, l int) []byte + func StringToByteFunc(str string, cb func(str string) []byte) (ret []byte) + func WindonizePath(path string) string + type ConfigManager struct + Db Database + Debug bool + Diff bool + DiffType string + ExecPath string + Paranoia bool + var Config *ConfigManager + func ReadConfig(ConfigFile string, Datadir string, EnvPrefix string) *ConfigManager + func (c *ConfigManager) Delete(key string) + func (c *ConfigManager) Save(key string, value interface{}) + type Database interface + Close func() + Delete func(key []byte) error + Get func(key []byte) ([]byte, error) + LastKnownTD func() []byte + Print func() + Put func(key []byte, value []byte) + type ExtPackage struct + EntryHtml string + Manifest *Manifest + func OpenPackage(fn string) (*ExtPackage, error) + type Manifest struct + Entry string + Height int + Width int + func ReadManifest(m []byte) (*Manifest, error) + type React struct + Event string + Resource interface{} + type ReactorEngine struct + func NewReactorEngine() *ReactorEngine + func (reactor *ReactorEngine) Post(event string, resource interface{}) + func (reactor *ReactorEngine) Subscribe(event string, ch chan React) + func (reactor *ReactorEngine) Unsubscribe(event string, ch chan React) + type ReactorEvent struct + func (e *ReactorEvent) Add(ch chan React) + func (e *ReactorEvent) Post(react React) + func (e *ReactorEvent) Remove(ch chan React) + type RlpEncodable interface + RlpEncode func() []byte + RlpValue func() []interface{} + type RlpEncoder struct + func NewRlpEncoder() *RlpEncoder + func (coder *RlpEncoder) EncodeData(rlpData interface{}) []byte + type Value struct + Val interface{} + func EmptyValue() *Value + func NewSliceValue(s interface{}) *Value + func NewValue(val interface{}) *Value + func NewValueFromBytes(data []byte) *Value + func (self *Value) Copy() *Value + func (self *Value) Decode() + func (val *Value) Append(v interface{}) *Value + func (val *Value) AppendList() *Value + func (val *Value) BigInt() *big.Int + func (val *Value) Byte() byte + func (val *Value) Bytes() []byte + func (val *Value) Cmp(o *Value) bool + func (val *Value) Encode() []byte + func (val *Value) Get(idx int) *Value + func (val *Value) Interface() interface{} + func (val *Value) IsEmpty() bool + func (val *Value) IsList() bool + func (val *Value) IsNil() bool + func (val *Value) IsSlice() bool + func (val *Value) IsStr() bool + func (val *Value) Len() int + func (val *Value) NewIterator() *ValueIterator + func (val *Value) Raw() interface{} + func (val *Value) Slice() []interface{} + func (val *Value) SliceFrom(from int) *Value + func (val *Value) SliceFromTo(from, to int) *Value + func (val *Value) SliceTo(to int) *Value + func (val *Value) Str() string + func (val *Value) String() string + func (val *Value) Type() reflect.Kind + func (val *Value) Uint() uint64 + type ValueIterator struct + func (it *ValueIterator) Idx() int + func (it *ValueIterator) Next() bool + func (it *ValueIterator) Value() *Value