Analog of dApp this in default account script


#1

[email protected]!

in Dapp contracts with

{-# STDLIB_VERSION 3 #-}
{-# CONTENT_TYPE DAPP #-}
{-# SCRIPT_TYPE ACCOUNT #-}

I can use this statement to get the address of current dApp account. What is the analog of this in classic scripts?

  • classic scripts like this:
{-# STDLIB_VERSION 3 #-}
{-# CONTENT_TYPE EXPRESSION #-}
{-# SCRIPT_TYPE ACCOUNT #-}

#2

thx Inal:
let me = addressFromPublicKey(tx.senderPublicKey)
now me contain account address. ITS NOT A DAPP

to check that transaction was signed:
sigVerify(tx.bodyBytes, tx.proofs[0], tx.senderPublicKey)