resolver

package
v0.8.6-0...-97c3735 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2015 License: LGPL-2.1-or-later Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContractCodeURLhint = "" /* 412-byte string literal not displayed */

	ContractCodeHashReg = "" /* 330-byte string literal not displayed */

)

Variables

View Source
var HashRegContractAddress string = "0000000000000000000000000000000000000000000000000000000000005678"
View Source
var URLHintContractAddress string = "0000000000000000000000000000000000000000000000000000000000001234"

contract addresses will be hardcoded after they're created

Functions

func CreateContracts

func CreateContracts(xeth *xe.XEth, addr string)

Types

type Backend

type Backend interface {
	StorageAt(string, string) string
}

type Resolver

type Resolver struct {
	// contains filtered or unexported fields
}

func New

func New(eth Backend, uhca, nrca string) *Resolver

func (*Resolver) ContentHashToUrl

func (self *Resolver) ContentHashToUrl(chash common.Hash) (uri string, err error)

func (*Resolver) KeyToContentHash

func (self *Resolver) KeyToContentHash(khash common.Hash) (chash common.Hash, err error)

func (*Resolver) KeyToUrl

func (self *Resolver) KeyToUrl(key common.Hash) (uri string, hash common.Hash, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL