Skip to content
Snippets Groups Projects
Select Git revision
  • b5ec7827236765ec0e068ccb3f9eb680c23a7d5b
  • develop default protected
  • congestioncontrol
  • merge-v-data-collection-spammer-0.8.2
  • WIP-merge-v-data-collection-spammer-0.8.2
  • merge-v-data-collection-spammer-0.7.7
  • tmp
  • test-masterpow-fixing
  • test-masterpow
  • test-echo
  • v-data-collection
  • v-data-collection-spammer
  • tmp-dump-spam-info
  • dump-msg-info-0.3.1
  • test-dump-message-info
  • spammer-exprandom
  • extra/tutorial
  • without_tipselection
  • hacking-docker-network
  • hacking-docker-network-0.2.3
  • master
  • v0.2.3
22 results

go.mod

Blame
  • This project manages its dependencies using Go Modules. Learn more
    address.go 584 B
    package client
    
    import (
    	"github.com/iotaledger/iota.go/consts"
    	"github.com/iotaledger/iota.go/trinary"
    )
    
    type Address struct {
    	trytes        trinary.Trytes
    	securityLevel consts.SecurityLevel
    	privateKey    trinary.Trits
    }
    
    func NewAddress(trytes trinary.Trytes) *Address {
    	return &Address{
    		trytes: trytes,
    	}
    }
    
    func (address *Address) GetTrytes() trinary.Trytes {
    	return address.trytes
    }
    
    func (address *Address) GetSecurityLevel() consts.SecurityLevel {
    	return address.securityLevel
    }
    
    func (address *Address) GetPrivateKey() trinary.Trits {
    	return address.privateKey
    }