ANALYZING THE SECURITY IMPLICATIONS OF ON CHAIN VS OFF CHAIN