func (multiStore *MultiAddrStore) Delete(addr wire.Address) error {
	signatory, err := addr.Signatory()
	if err != nil {
		return err
	}
	return multiStore.store.Delete(signatory.String())
}
Delete removes the given multi-address from the store.
package store
import (
	"fmt"
	"math/rand"
	"github.com/renproject/aw/wire"
	"github.com/renproject/kv/db"
)
type MultiAddrStore struct {
	store          db.Table
	bootstrapAddrs []wire.Address
}
func New(store db.Table, bootstrapAddrs []wire.Address) MultiAddrStore {
	multiStore := MultiAddrStore{
		store:          store,
		bootstrapAddrs: bootstrapAddrs,
	}
	for _, addr := range bootstrapAddrs {
		if err := multiStore.Insert(addr); err != nil {
			panic(fmt.Sprintf("[MultiAddrStore] cannot initialize the store with bootstrap nodes addresses"))
		}
	}
	return multiStore
}
func (multiStore *MultiAddrStore) Get(id string) (wire.Address, error) {
	var addrString string
	if err := multiStore.store.Get(id, &addrString); err != nil {
		return wire.Address{}, err
	}
	return wire.DecodeString(addrString)
}
func (multiStore *MultiAddrStore) Insert(addr wire.Address) error {
	signatory, err := addr.Signatory()
	if err != nil {
		return err
	}
	return multiStore.store.Insert(signatory.String(), addr.String())
}