address property

String address

The address of this.

Implementation

String get address => crypto.catchUnhandledErrors(() {
      final publicKeyBytes = crypto.decodeWithoutPrefix(publicKey);
      final hash = crypto.hashWithDigestSize(
        size: 160,
        bytes: publicKeyBytes,
      );

      return crypto.encodeWithPrefix(
        prefix: _addressPrefix,
        bytes: hash,
      );
    });