Bitpay\PublicKey::getSin PHP Method

getSin() public method

public getSin ( ) : SinKey
return SinKey
    public function getSin()
    {
        if (empty($this->hex)) {
            $this->generate();
        }
        if (null === $this->sin) {
            $this->sin = new SinKey();
            $this->sin->setPublicKey($this);
            $this->sin->generate();
        }
        return $this->sin;
    }