oracle

package
v0.0.0-...-783b753 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2019 License: BSD-2-Clause Imports: 14 Imported by: 0

Documentation

Overview

Copyright 2019 Nick Johnson. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PackName

func PackName(name string) ([]byte, error)

Types

type Oracle

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

func New

func New(addr common.Address, backend bind.ContractBackend) (*Oracle, error)

func (*Oracle) DeleteRRSet

func (o *Oracle) DeleteRRSet(opts *bind.TransactOpts, dnsType uint16, name string, nsec proofs.SignedSet, proof []byte) (*types.Transaction, error)

func (*Oracle) FindFirstUnknownProof

func (o *Oracle) FindFirstUnknownProof(p []proofs.SignedSet) (int, error)

func (*Oracle) GetContract

func (o *Oracle) GetContract() *contracts.DNSSEC

func (*Oracle) RecordMatches

func (o *Oracle) RecordMatches(set proofs.SignedSet) (bool, error)

func (*Oracle) Rrdata

func (o *Oracle) Rrdata(rrtype uint16, name string) (uint32, uint64, [20]byte, error)

func (*Oracle) SendProofs

func (o *Oracle) SendProofs(opts *bind.TransactOpts, p []proofs.SignedSet, known int) (*types.Transaction, error)

func (*Oracle) SerializeProofs

func (o *Oracle) SerializeProofs(p []proofs.SignedSet, known int) ([]byte, []byte, error)

Jump to

Keyboard shortcuts

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